/**
 * iOS Tools - Unified Stylesheet
 * ================================
 * Shared CSS for all iOS tools at iosgodsipa.pro/tools/
 * 
 * Contents:
 * 1. CSS Variables (Design System)
 * 2. Base Styles
 * 3. Hero Section
 * 4. Container & Layout
 * 5. Info Cards Section
 * 6. Dropzone (File Upload)
 * 7. File Info
 * 8. Progress Bar
 * 9. Results Section
 * 10. Buttons
 * 11. Related Tools
 * 12. Sidebar Panel
 * 13. How-To Section
 * 14. Tabs
 * 15. Tables
 * 16. Privacy Badge
 * 17. Notes Section
 * 18. Error States
 * 19. Animations
 * 20. Responsive
 */

/* ===== 1. CSS Variables ===== */
:root {
    /* Primary Colors */
    --ios-primary-gradient: linear-gradient(135deg, #1a0a3e 0%, #0f4c75 50%, #1a0a3e 100%);
    --ios-primary-dark: #1a0a3e;
    --ios-primary-blue: #0f4c75;
    --ios-primary-color: #0099CC;
    --ios-primary-hover: #007aa3;

    /* Accent Colors */
    --ios-accent-purple: #6c5ce7;
    --ios-accent-blue: #00cec9;

    /* Text Colors */
    --ios-text-primary: #2d3436;
    --ios-text-secondary: #636e72;
    --ios-text-muted: #6C757D;
    --ios-text-light: #b2bec3;
    --ios-text-white: #ffffff;
    --ios-text-dark: #212529;

    /* Background Colors */
    --ios-bg-light: #f8f9fa;
    --ios-bg-white: #ffffff;
    --ios-bg-card: #ffffff;

    /* Status Colors */
    --ios-success: #00b894;
    --ios-success-color: #28A745;
    --ios-warning: #fdcb6e;
    --ios-warning-color: #FFC107;
    --ios-error: #d63031;
    --ios-error-color: #DC3545;

    /* Borders & Shadows */
    --ios-border-color: #e0e0e0;
    --ios-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --ios-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ios-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --ios-shadow-light: 0px 5px 20px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --ios-radius-sm: 6px;
    --ios-radius-md: 12px;
    --ios-radius-lg: 20px;
    --ios-radius-pill: 50px;
}

/* ===== 2. Base Styles ===== */
.ios-tool-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--ios-bg-light);
    color: var(--ios-text-primary);
    line-height: 1.6;
    width: 100%;
}

/* ===== 3. Hero Section ===== */
.ios-hero {
    background: var(--ios-primary-gradient);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.ios-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.ios-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.ios-hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.ios-hero h1,
.ios-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ios-text-white);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-hero p,
.ios-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 20px;
}

/* ===== 4. Container & Layout ===== */
.ios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.ios-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 5. Info Cards Section ===== */
.ios-info-section {
    margin-bottom: 40px;
}

.ios-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ios-accent-purple);
    margin-bottom: 20px;
}

.ios-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ios-info-card {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-md);
    padding: 20px;
    box-shadow: var(--ios-shadow-sm);
    border: 1px solid var(--ios-border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ios-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ios-shadow-md);
}

.ios-info-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.ios-info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ios-info-card p {
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
}

/* ===== 6. Dropzone (File Upload) ===== */
.ios-dropzone {
    border: 3px dashed var(--ios-border-color);
    border-radius: var(--ios-radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--ios-bg-light);
}

.ios-dropzone:hover,
.ios-dropzone.dragover {
    border-color: var(--ios-primary-color);
    background: rgba(0, 153, 204, 0.05);
}

.ios-dropzone.has-file {
    border-color: var(--ios-success);
    background: rgba(0, 184, 148, 0.05);
}

.ios-dropzone-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.ios-dropzone-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ios-text-primary);
}

.ios-dropzone-subtitle {
    color: var(--ios-text-muted);
    margin-bottom: 20px;
}

/* ios-dropzone-hint removed - using drop-zone-hint instead */

.ios-dropzone input[type="file"] {
    display: none;
}

/* ===== 7. File Info ===== */
.ios-upload-section {
    background: var(--ios-bg-card);
    border-radius: var(--ios-radius-md);
    padding: 40px;
    box-shadow: var(--ios-shadow-light);
    margin-bottom: 30px;
    border: 1px solid var(--ios-border-color);
}

.ios-file-info {
    display: none;
    background: rgba(0, 153, 204, 0.1);
    border: 1px solid rgba(0, 153, 204, 0.2);
    border-radius: var(--ios-radius-sm);
    padding: 15px 20px;
    margin-top: 20px;
    align-items: center;
    gap: 15px;
}

.ios-file-info.active {
    display: flex;
}

.ios-file-info-icon {
    font-size: 2rem;
}

.ios-file-info-details {
    flex: 1;
}

.ios-file-info-name {
    font-weight: 600;
    color: var(--ios-text-dark);
}

.ios-file-info-size {
    font-size: 0.85rem;
    color: var(--ios-text-muted);
}

.ios-file-remove-btn {
    background: var(--ios-error-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.ios-file-remove-btn:hover {
    background: #c82333;
}

/* ===== 8. Progress Bar ===== */
.ios-progress {
    display: none;
    margin-top: 20px;
}

.ios-progress.active {
    display: block;
}

.ios-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--ios-bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.ios-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ios-primary-color), var(--ios-success-color));
    width: 0%;
    transition: width 0.3s ease;
}

.ios-progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--ios-text-muted);
    font-size: 0.9rem;
}

/* ===== 9. Results Section ===== */
.ios-results {
    display: none;
}

.ios-results.active {
    display: block;
    animation: iosFadeIn 0.4s ease;
}

.ios-result-card {
    background: var(--ios-bg-card);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--ios-shadow-light);
}

/* Old ios-result-* classes removed - now using result-* classes */

/* ===== 10. Buttons ===== */
.ios-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--ios-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.ios-btn-primary {
    background: var(--ios-primary-color);
    color: var(--ios-text-white);
}

.ios-btn-primary:hover {
    background: var(--ios-primary-hover);
    transform: translateY(-2px);
}

.ios-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ios-btn-success {
    background: var(--ios-success-color);
    color: var(--ios-text-white);
}

.ios-btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.ios-btn-secondary {
    background: var(--ios-bg-light);
    color: var(--ios-text-dark);
    border: 1px solid var(--ios-border-color);
}

.ios-btn-secondary:hover {
    border-color: var(--ios-primary-color);
    transform: translateY(-2px);
}

.ios-btn-purple {
    background: linear-gradient(135deg, var(--ios-accent-purple) 0%, #5b4cdb 100%);
    color: white;
}

.ios-btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.ios-btn-full {
    width: 100%;
}

/* ios-btn-lg removed - not used */

.ios-analyze-btn {
    display: none;
    width: 100%;
    background: var(--ios-success-color);
    color: var(--ios-text-white);
    border: none;
    padding: 16px;
    border-radius: var(--ios-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ios-analyze-btn.active {
    display: block;
}

.ios-analyze-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.ios-analyze-btn:disabled {
    background: var(--ios-text-muted);
    cursor: not-allowed;
    transform: none;
}

.ios-browse-btn {
    background: var(--ios-primary-color);
    color: var(--ios-text-white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--ios-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ios-browse-btn:hover {
    background: var(--ios-primary-hover);
    transform: translateY(-2px);
}

/* ===== 11. Related Tools ===== */
.ios-related-tools {
    margin-top: 60px;
}

.ios-related-tools h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.ios-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ios-tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-md);
    text-decoration: none;
    color: var(--ios-text-primary);
    border: 1px solid var(--ios-border-color);
    transition: all 0.2s;
}

.ios-tool-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--ios-shadow-md);
    border-color: var(--ios-primary-color);
}

.ios-tool-link-icon {
    width: 40px;
    height: 40px;
    background: var(--ios-primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ios-tool-link-text {
    font-weight: 500;
}

/* ===== 12. Sidebar Panel ===== */
/* Old ios-sidebar-* classes removed - now using sidebar-* classes */

/* ===== 13. How-To Section ===== */
.ios-howto-section {
    margin-top: 40px;
}

.ios-howto-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ios-text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.ios-howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ios-howto-step {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--ios-shadow-sm);
    border: 1px solid var(--ios-border-color);
}

.ios-step-number {
    width: 40px;
    height: 40px;
    background: var(--ios-accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
}

.ios-step-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.ios-step-desc {
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
}

/* ===== 14. Tabs ===== */
.ios-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--ios-border-color);
    padding-bottom: 10px;
}

.ios-tab {
    padding: 10px 20px;
    background: var(--ios-bg-light);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-tab:hover {
    border-color: var(--ios-primary-color);
}

.ios-tab.active {
    background: var(--ios-primary-color);
    color: white;
    border-color: var(--ios-primary-color);
}

.ios-tab-content {
    display: none;
}

.ios-tab-content.active {
    display: block;
}

/* ===== 15. Tables ===== */
.ios-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ios-bg-light);
    border-radius: var(--ios-radius-sm);
    overflow: hidden;
}

.ios-table th,
.ios-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--ios-border-color);
}

.ios-table th {
    background: var(--ios-primary-color);
    color: white;
    font-weight: 600;
    width: 35%;
}

.ios-table td {
    font-family: 'SF Mono', 'Fira Code', monospace;
    word-break: break-all;
}

.ios-table tr:last-child td {
    border-bottom: none;
}

.ios-table tr:hover td {
    background: rgba(0, 153, 204, 0.05);
}

/* ===== 16. Privacy Badge ===== */
.ios-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 167, 69, 0.15);
    color: #28A745;
    padding: 10px 20px;
    border-radius: var(--ios-radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 15px;
}

/* Alternative badge style (green border) */
.ios-badge-client-side {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 184, 148, 0.2);
    border: 1px solid rgba(0, 184, 148, 0.4);
    color: #00b894;
    padding: 10px 20px;
    border-radius: var(--ios-radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
}

.ios-badge-client-side::before {
    content: '🔒';
}

/* ===== 17. Notes Section ===== */
.ios-notes {
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.05) 0%, rgba(44, 83, 100, 0.05) 100%);
    border: 1px solid rgba(0, 153, 204, 0.2);
    border-radius: var(--ios-radius-md);
    padding: 25px;
    margin-bottom: 30px;
}

.ios-notes-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ios-primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.ios-note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-sm);
    border: 1px solid var(--ios-border-color);
}

.ios-note-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ios-note-content {
    flex: 1;
}

.ios-note-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ios-text-dark);
    margin-bottom: 2px;
}

.ios-note-value {
    font-size: 0.8rem;
    color: var(--ios-text-muted);
}

/* ===== 18. Error States ===== */
.ios-error {
    display: none;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: var(--ios-radius-md);
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.ios-error.active {
    display: block;
}

.ios-error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.ios-error-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ios-error-color);
    margin-bottom: 10px;
}

.ios-error-message {
    color: var(--ios-text-muted);
}

/* ios-error-inline removed - using error-message instead */

/* ===== 19. Animations ===== */
@keyframes iosFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iosSpin {
    to {
        transform: rotate(360deg);
    }
}

.ios-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: iosSpin 0.8s linear infinite;
}

/* ===== 20. Responsive ===== */
@media (max-width: 768px) {

    .ios-hero h1,
    .ios-hero-title {
        font-size: 1.8rem;
    }

    .ios-hero p,
    .ios-hero-description {
        font-size: 1rem;
    }

    .ios-hero-icon {
        font-size: 48px;
    }

    .ios-dropzone {
        padding: 40px 20px;
    }

    .ios-dropzone-icon {
        font-size: 48px;
    }

    .ios-upload-section {
        padding: 25px 20px;
    }

    .ios-info-grid {
        grid-template-columns: 1fr;
    }

    .ios-tools-grid {
        grid-template-columns: 1fr;
    }

    .ios-notes-grid {
        grid-template-columns: 1fr;
    }

    .ios-howto-steps {
        grid-template-columns: 1fr;
    }

    .ios-tabs {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .ios-container,
    .ios-container-narrow {
        padding: 0 15px;
    }

    .ios-result-card {
        padding: 20px;
    }
}

/* ===== Hub Page Specific ===== */
/* Old ios-hub-* classes removed - now using tools-hub-* classes */

/* Features Section & CTA Section */
/* Removed - not used in tool pages */

/* ===== Use Cases ===== */
/* Old ios-use-cases-* classes removed - now using use-cases-* classes */

/* ===== Converter Tools (IPA↔ZIP) ===== */
.converter-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.drop-zone {
    border: 3px dashed var(--ios-border-color);
    border-radius: var(--ios-radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--ios-bg-white);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--ios-accent-purple);
    background: rgba(108, 92, 231, 0.05);
}

.drop-zone.has-file {
    border-color: var(--ios-success);
    background: rgba(0, 184, 148, 0.05);
}

.drop-zone-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.drop-zone-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.drop-zone-text {
    color: var(--ios-text-secondary);
    margin-bottom: 16px;
}

.drop-zone-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ios-bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
}

.drop-zone input[type="file"] {
    display: none;
}

.file-info {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-md);
    padding: 20px;
    margin-top: 24px;
    box-shadow: var(--ios-shadow-sm);
    border: 1px solid var(--ios-border-color);
    display: none;
}

.file-info.active {
    display: block;
}

.file-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ios-accent-blue), var(--ios-accent-purple));
    border-radius: var(--ios-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.file-info-details {
    flex: 1;
}

.file-info-name {
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-info-size {
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
}

.file-info-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--ios-bg-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.file-info-remove:hover {
    background: rgba(214, 48, 49, 0.1);
    color: var(--ios-error);
}

.convert-section {
    margin-top: 24px;
}

.convert-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
}

.progress-section {
    margin-top: 24px;
    display: none;
}

.progress-section.active {
    display: block;
}

.progress-bar-container {
    background: var(--ios-bg-light);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ios-accent-blue), var(--ios-accent-purple));
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
}

.result-section {
    margin-top: 24px;
    display: none;
}

.result-section.active {
    display: block;
}

.result-card {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(0, 206, 201, 0.1));
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: var(--ios-radius-md);
    padding: 24px;
    text-align: center;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ios-success);
    margin-bottom: 8px;
}

.result-text {
    font-size: 0.9rem;
    color: var(--ios-text-secondary);
    margin-bottom: 20px;
}

.result-filename {
    background: var(--ios-bg-white);
    padding: 12px 16px;
    border-radius: var(--ios-radius-sm);
    font-family: Monaco, Menlo, monospace;
    font-size: 0.9rem;
    margin-bottom: 16px;
    word-break: break-all;
}

.download-btn {
    width: 100%;
}

.error-message {
    background: rgba(214, 48, 49, 0.1);
    border: 1px solid rgba(214, 48, 49, 0.3);
    border-radius: var(--ios-radius-sm);
    padding: 16px;
    margin-top: 16px;
    color: var(--ios-error);
    display: none;
}

.error-message.active {
    display: block;
}

.sidebar-panel {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow-md);
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #2d3436, #1a1a2e);
    color: white;
}

.sidebar-header h3 {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sidebar-body {
    padding: 20px;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ios-border-color);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-label {
    color: var(--ios-text-secondary);
    font-size: 0.9rem;
}

.sidebar-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.use-cases-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ios-border-color);
}

.use-cases-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.use-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-cases-list li {
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.use-cases-list li::before {
    content: '→';
    color: var(--ios-accent-purple);
    font-weight: bold;
}

.requirements-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ios-border-color);
}

.requirements-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 0.85rem;
    color: var(--ios-text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-list li::before {
    content: '✓';
    color: var(--ios-success);
    font-weight: bold;
}

@media (max-width: 768px) {
    .drop-zone {
        padding: 40px 20px;
    }

    .drop-zone-icon {
        font-size: 48px;
    }
}

/* ===== Tools Hub Page ===== */
.tools-hub-wrapper {
    min-height: 100vh;
    background: var(--ios-bg-light);
}

.tools-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tools-hub-hero {
    background: var(--ios-primary-gradient);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tools-hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.tools-hub-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ios-text-white);
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.tools-hub-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.tools-hub-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tools-hub-stat {
    text-align: center;
}

.tools-hub-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ios-primary-color);
    display: block;
}

.tools-hub-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.tools-hub-section {
    padding: 60px 0;
}

.tools-hub-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ios-text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tools-hub-card {
    background: var(--ios-bg-card);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tools-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ios-primary-color), var(--ios-primary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tools-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 153, 204, 0.2);
    border-color: var(--ios-primary-color);
}

.tools-hub-card:hover::before {
    opacity: 1;
}

.tools-hub-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.1) 0%, rgba(15, 76, 117, 0.1) 100%);
    border-radius: var(--ios-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tools-hub-card:hover .tools-hub-card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.2) 0%, rgba(15, 76, 117, 0.2) 100%);
}

.tools-hub-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ios-text-dark);
    margin: 0 0 10px 0;
}

.tools-hub-card-desc {
    font-size: 0.95rem;
    color: var(--ios-text-muted);
    margin: 0 0 20px 0;
    flex: 1;
    line-height: 1.6;
}

.tools-hub-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tools-hub-feature-tag {
    background: var(--ios-bg-light);
    color: var(--ios-text-muted);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.tools-hub-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ios-primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.tools-hub-card-cta svg {
    transition: transform 0.3s ease;
}

.tools-hub-card:hover .tools-hub-card-cta svg {
    transform: translateX(5px);
}

.tools-hub-features {
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.05) 0%, rgba(15, 76, 117, 0.05) 100%);
    padding: 60px 0;
}

.tools-hub-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tools-hub-feature-card {
    text-align: center;
    padding: 30px 20px;
}

.tools-hub-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--ios-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    color: white;
}

.tools-hub-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ios-text-dark);
    margin-bottom: 10px;
}

.tools-hub-feature-desc {
    font-size: 0.9rem;
    color: var(--ios-text-muted);
    line-height: 1.6;
}

.tools-hub-cta {
    background: var(--ios-primary-gradient);
    padding: 60px 20px;
    text-align: center;
}

.tools-hub-cta h2 {
    font-size: 2rem;
    color: var(--ios-text-white);
    margin: 0 0 15px 0;
}

.tools-hub-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 25px 0;
}

.tools-hub-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ios-primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: var(--ios-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tools-hub-cta-btn:hover {
    background: var(--ios-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 153, 204, 0.3);
}

@media (max-width: 768px) {
    .tools-hub-hero h1 {
        font-size: 2rem;
    }

    .tools-hub-hero p {
        font-size: 1rem;
    }

    .tools-hub-stats {
        gap: 25px;
    }

    .tools-hub-stat-value {
        font-size: 2rem;
    }

    .tools-hub-grid {
        grid-template-columns: 1fr;
    }

    .tools-hub-section {
        padding: 40px 0;
    }
}

/* ===== IPA Metadata Viewer Specific ===== */
/* Result Header */
.ios-result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ios-border-color);
    flex-wrap: wrap;
}

.ios-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: var(--ios-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    box-shadow: var(--ios-shadow-light);
}

.ios-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ios-app-info {
    flex: 1;
    min-width: 200px;
}

.ios-app-info h2 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: var(--ios-text-dark);
}

.ios-app-info p {
    margin: 0;
    color: var(--ios-text-muted);
}

/* Accordion */
.ios-accordion {
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    overflow: hidden;
}

.ios-accordion-item {
    border-bottom: 1px solid var(--ios-border-color);
}

.ios-accordion-item:last-child {
    border-bottom: none;
}

.ios-accordion-header {
    padding: 15px 20px;
    background: var(--ios-bg-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ios-accordion-header:hover {
    background: rgba(0, 153, 204, 0.05);
}

.ios-accordion-header.active {
    background: var(--ios-primary-color);
    color: white;
}

.ios-accordion-icon {
    transition: transform 0.3s ease;
}

.ios-accordion-header.active .ios-accordion-icon {
    transform: rotate(180deg);
}

.ios-accordion-content {
    display: none;
    padding: 15px 20px;
    background: var(--ios-bg-white);
    max-height: 300px;
    overflow-y: auto;
}

.ios-accordion-content.active {
    display: block;
}

/* JSON Viewer */
.ios-json-viewer {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--ios-radius-sm);
    font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.ios-json-viewer .key {
    color: #9cdcfe;
}

.ios-json-viewer .string {
    color: #ce9178;
}

.ios-json-viewer .number {
    color: #b5cea8;
}

.ios-json-viewer .boolean {
    color: #569cd6;
}

/* Actions */
.ios-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Tool Icon for Related Tools */
.ios-tool-icon {
    width: 40px;
    height: 40px;
    background: var(--ios-primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ios-tool-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== LEGACY BUTTON SUPPORT ===== */
/* These styles support old btn-* classes that haven't been migrated */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ios-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ios-accent-purple) 0%, #5b4cdb 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--ios-success) 0%, #00a085 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.btn-secondary {
    background: var(--ios-bg-white);
    color: var(--ios-text-primary);
    border: 1px solid var(--ios-border-color);
}

.btn-secondary:hover {
    background: var(--ios-bg-light);
    border-color: var(--ios-accent-purple);
}

.btn-danger {
    background: linear-gradient(135deg, var(--ios-error) 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--ios-text-primary);
}

.form-label-hint {
    font-weight: 400;
    color: var(--ios-text-secondary);
    font-size: 0.8rem;
    margin-left: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--ios-bg-white);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ios-accent-purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-input::placeholder {
    color: var(--ios-text-light);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

.form-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ios-border-color);
}

.form-header h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header p {
    color: var(--ios-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ios-border-color);
}

.toggle-group:last-child {
    border-bottom: none;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--ios-text-primary);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--ios-success);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: var(--ios-shadow-sm);
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* ===== CONFIG TABS (Mobileconfig Generator) ===== */
.config-tabs {
    display: flex;
    gap: 4px;
    background: var(--ios-bg-white);
    padding: 8px;
    border-radius: var(--ios-radius-md);
    box-shadow: var(--ios-shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.config-tab {
    flex: 1;
    min-width: 100px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ios-text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.config-tab:hover {
    background: var(--ios-bg-light);
}

.config-tab.active {
    background: var(--ios-accent-purple);
    color: white;
}

.config-tab-icon {
    font-size: 18px;
}

.config-panel {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow-md);
    overflow: hidden;
}

.config-form {
    padding: 30px;
    display: none;
}

.config-form.active {
    display: block;
}

/* ===== SECTION CARD (AltStore Builder) ===== */
.section-card {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--ios-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-body {
    padding: 24px;
}

/* ===== BUILDER MAIN LAYOUT ===== */
.builder-main {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 24px;
}

.mobileconfig-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

@media (max-width: 1200px) {
    .builder-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mobileconfig-main {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .config-tabs {
        flex-direction: column;
    }

    .config-tab {
        justify-content: flex-start;
    }
}

/* ===== ITEM CARDS (Apps/News) ===== */
.item-card {
    background: var(--ios-bg-light);
    border-radius: var(--ios-radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--ios-border-color);
}

.item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ios-border-color);
}

.item-title {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.version-item {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-sm);
    padding: 16px;
    margin-top: 12px;
    border: 1px solid var(--ios-border-color);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.version-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ios-accent-purple);
}

/* ===== PREVIEW PANEL ===== */
.preview-panel {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow-md);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.preview-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-header h3 {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.preview-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
}

.preview-content {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.preview-code {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #abb2bf;
    background: #1e1e2e;
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.preview-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--ios-border-color);
    display: flex;
    gap: 12px;
}

.preview-actions .btn {
    flex: 1;
}

/* ===== IMPORT SECTION ===== */
.import-section {
    margin-bottom: 24px;
}

.import-drop {
    border: 2px dashed var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--ios-bg-white);
}

.import-drop:hover {
    border-color: var(--ios-accent-purple);
    background: rgba(108, 92, 231, 0.05);
}

.import-drop-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.import-drop p {
    color: var(--ios-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== ICON UPLOAD (WebClip) ===== */
.icon-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-preview {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--ios-bg-light);
    border: 2px dashed var(--ios-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-preview:hover {
    border-color: var(--ios-accent-purple);
}

.icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-preview-placeholder {
    font-size: 32px;
    opacity: 0.5;
}

.icon-upload-info {
    flex: 1;
}

.icon-upload-info h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.icon-upload-info p {
    font-size: 0.8rem;
    color: var(--ios-text-secondary);
    margin: 0;
}

.icon-upload input[type="file"] {
    display: none;
}

/* ===== COLOR INPUT ===== */
.color-input-wrapper {
    display: flex;
    gap: 8px;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
}

/* ===== SIDEBAR METADATA ===== */
.sidebar-card-body {
    padding: 20px;
    border-top: 1px solid var(--ios-border-color);
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
}

.metadata-label {
    color: var(--ios-text-secondary);
}

.metadata-value {
    font-weight: 500;
    color: var(--ios-text-primary);
}

/* ===== TOOL FOOTER ===== */

/* ===== BUNDLE ID LOOKUP SPECIFIC ===== */
.ios-search-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ios-search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.ios-search-input {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border: 2px solid var(--ios-border-color);
    border-radius: var(--ios-radius-pill);
    background: var(--ios-bg-white);
    color: var(--ios-text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.ios-search-input:focus {
    border-color: var(--ios-primary-color);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.15);
}

.ios-copy-btn {
    background: var(--ios-bg-light);
    border: 1px solid var(--ios-border-color);
    padding: 10px 20px;
    border-radius: var(--ios-radius-sm);
    color: var(--ios-text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-copy-btn:hover {
    background: var(--ios-primary-color);
    color: var(--ios-text-white);
    border-color: var(--ios-primary-color);
}

.ios-copy-btn.copied {
    background: var(--ios-success-color);
    border-color: var(--ios-success-color);
    color: var(--ios-text-white);
}

/* ===== PLIST EDITOR SPECIFIC ===== */

.editor-toolbar {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--ios-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}


.view-toggle {
    display: flex;
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-sm);
    overflow: hidden;
    border: 1px solid var(--ios-border-color);
}

.view-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ios-text-secondary);
    transition: all 0.2s;
}

.view-toggle button.active {
    background: var(--ios-accent-purple);
    color: white;
}











/* ===== BUNDLE ID LOOKUP - FULL STYLES ===== */

.bundleid-lookup-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Suggestions Dropdown */
.bundleid-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ios-bg-white);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    box-shadow: var(--ios-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.bundleid-suggestions.active {
    display: block;
    animation: iosFadeIn 0.2s ease;
}

.bundleid-suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--ios-border-color);
}

.bundleid-suggestion-item:last-child {
    border-bottom: none;
}

.bundleid-suggestion-item:hover {
    background: var(--ios-bg-light);
}

.bundleid-suggestion-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.bundleid-suggestion-info {
    flex: 1;
    min-width: 0;
}

.bundleid-suggestion-name {
    font-weight: 600;
    color: var(--ios-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bundleid-suggestion-developer {
    font-size: 0.85rem;
    color: var(--ios-text-muted);
}

.bundleid-suggestion-bundle {
    font-size: 0.75rem;
    color: var(--ios-primary-color);
    font-family: monospace;
    background: rgba(0, 153, 204, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.bundleid-suggestions-loading,
.bundleid-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: var(--ios-text-muted);
}

/* Search Hints */
.bundleid-search-hints {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.bundleid-hint-chip {
    background: var(--ios-bg-light);
    padding: 8px 16px;
    border-radius: var(--ios-radius-pill);
    font-size: 0.85rem;
    color: var(--ios-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--ios-border-color);
}

.bundleid-hint-chip:hover {
    background: var(--ios-primary-color);
    color: var(--ios-text-white);
    border-color: var(--ios-primary-color);
}

/* App Card */
.bundleid-app-card {
    background: var(--ios-bg-card);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    padding: 30px;
    box-shadow: var(--ios-shadow-light);
    margin-bottom: 20px;
}

.bundleid-app-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
}



.bundleid-app-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--ios-text-dark);
}

.bundleid-app-developer {
    font-size: 1rem;
    color: var(--ios-primary-color);
    margin-bottom: 10px;
}

.bundleid-app-genre {
    display: inline-block;
    background: var(--ios-primary-color);
    color: var(--ios-text-white);
    padding: 5px 15px;
    border-radius: var(--ios-radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Bundle ID Main Display */
.bundleid-main-display {
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.08) 0%, rgba(60, 24, 116, 0.08) 100%);
    border: 2px solid rgba(0, 153, 204, 0.2);
    border-radius: var(--ios-radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

.bundleid-main-display-label {
    font-size: 0.85rem;
    color: var(--ios-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bundleid-main-display-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.bundleid-value {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--ios-success-color);
    word-break: break-all;
}



/* Info Grid */
.bundleid-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.bundleid-info-item {
    background: var(--ios-bg-light);
    padding: 15px;
    border-radius: var(--ios-radius-sm);
    border: 1px solid var(--ios-border-color);
}

.bundleid-info-label {
    font-size: 0.75rem;
    color: var(--ios-text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bundleid-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ios-text-dark);
}

/* Action Buttons */
.bundleid-action-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    border-radius: var(--ios-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.bundleid-action-btn.primary {
    background: var(--ios-primary-color);
    border: none;
    color: var(--ios-text-white);
}

.bundleid-action-btn.primary:hover {
    background: var(--ios-primary-hover);
}

.bundleid-action-btn.secondary {
    background: transparent;
    border: 2px solid var(--ios-border-color);
    color: var(--ios-text-dark);
}

.bundleid-action-btn.secondary:hover {
    border-color: var(--ios-primary-color);
    color: var(--ios-primary-color);
}

/* Related App Section */
.bundleid-related-app {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(0, 153, 204, 0.08) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--ios-radius-lg);
    padding: 24px;
    margin-top: 30px;
    display: none;
    position: relative;
    overflow: hidden;
}

.bundleid-related-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ios-success);
}

.bundleid-related-app.active {
    display: block;
}

.bundleid-related-app-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ios-text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bundleid-related-app-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}

.bundleid-related-app-link:hover {
    transform: translateX(5px);
}

.bundleid-related-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: var(--ios-shadow-md);
    flex-shrink: 0;
}

.bundleid-related-app-info {
    flex: 1;
}

.bundleid-related-app-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ios-primary-blue);
    margin-bottom: 4px;
    line-height: 1.2;
}

.bundleid-related-app-desc {
    font-size: 0.92rem;
    color: var(--ios-text-secondary);
    line-height: 1.4;
}

.bundleid-related-app-badge {
    background: var(--ios-success);
    color: white;
    padding: 10px 20px;
    border-radius: var(--ios-radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.bundleid-related-app-link:hover .bundleid-related-app-badge {
    background: var(--ios-primary-color);
    box-shadow: 0 6px 15px rgba(0, 153, 204, 0.4);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .bundleid-related-app-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .bundleid-related-app-badge {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
}

/* Rating */
.bundleid-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.bundleid-star {
    color: #FFC107;
    font-size: 0.9rem;
}

.bundleid-rating-value {
    margin-left: 8px;
    font-weight: 600;
    color: var(--ios-text-dark);
}

/* Screenshots */
.bundleid-screenshots {
    margin-top: 25px;
}

.bundleid-screenshots-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--ios-text-muted);
}

.bundleid-screenshots-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.bundleid-screenshot-img {
    height: 200px;
    border-radius: var(--ios-radius-sm);
    flex-shrink: 0;
    border: 1px solid var(--ios-border-color);
}

/* Other Tools */
.bundleid-other-tools {
    background: var(--ios-bg-card);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--ios-shadow-light);
}

.bundleid-other-tools-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ios-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Recent Searches */
.bundleid-recent {
    margin-top: 40px;
    padding-bottom: 40px;
}

.bundleid-recent-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ios-text-muted);
}

.bundleid-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bundleid-recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--ios-bg-card);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bundleid-recent-item:hover {
    border-color: var(--ios-primary-color);
    box-shadow: var(--ios-shadow-light);
    transform: translateX(5px);
}

.bundleid-recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.bundleid-recent-info {
    flex: 1;
}

.bundleid-recent-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--ios-text-dark);
}

.bundleid-recent-bundle {
    font-size: 0.85rem;
    color: var(--ios-text-muted);
    font-family: monospace;
}

@media (max-width: 600px) {
    .bundleid-app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bundleid-main-display-value {
        flex-direction: column;
        align-items: stretch;
    }

    .bundleid-value {
        text-align: center;
        font-size: 1.1rem;
    }

}

/* ===== PLIST EDITOR - FULL STYLES ===== */
.tool-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

@media (max-width: 1024px) {
    .tool-main {
        grid-template-columns: 1fr;
    }
}

/* Drop Zone */
.drop-zone {
    background: var(--ios-bg-white);
    border: 2px dashed var(--ios-border-color);
    border-radius: var(--ios-radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--ios-accent-purple);
    background: rgba(108, 92, 231, 0.05);
}

.drop-zone-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.drop-zone h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--ios-text-primary);
}

.drop-zone p {
    color: var(--ios-text-secondary);
    font-size: 0.9rem;
}

.drop-zone input[type="file"] {
    display: none;
}

/* Editor Panel */
.editor-panel {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow-md);
    overflow: hidden;
    display: none;
}

.editor-panel.active {
    display: block;
}

/* Toolbar */
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--ios-bg-white);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    padding: 0 12px;
    min-width: 200px;
}

.search-box input {
    border: none;
    padding: 8px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.search-box::before {
    content: '🔍';
    font-size: 14px;
    opacity: 0.5;
}

/* Editor Table */
.editor-table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.editor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.editor-table th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--ios-text-primary);
    border-bottom: 2px solid var(--ios-border-color);
    z-index: 10;
}

.editor-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ios-border-color);
    vertical-align: middle;
}

.editor-table tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.editor-table tr:hover {
    background: rgba(108, 92, 231, 0.05);
}

.editor-table .key-cell {
    font-weight: 500;
    color: var(--ios-accent-purple);
    min-width: 200px;
}

.editor-table .type-cell {
    min-width: 120px;
}

.editor-table .value-cell {
    min-width: 300px;
}

.editor-table .actions-cell {
    width: 80px;
    text-align: center;
}

.editable-cell {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--ios-radius-sm);
    cursor: text;
    transition: all 0.2s;
    min-height: 36px;
    display: block;
}

.editable-cell:hover {
    border-color: var(--ios-border-color);
    background: var(--ios-bg-white);
}

.editable-cell:focus {
    outline: none;
    border-color: var(--ios-accent-purple);
    background: var(--ios-bg-white);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.type-select {
    padding: 6px 10px;
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--ios-bg-white);
    color: var(--ios-text-primary);
}

.type-select:focus {
    outline: none;
    border-color: var(--ios-accent-purple);
}

.action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: transparent;
}

.action-btn:hover {
    background: var(--ios-bg-light);
}

.action-btn.delete:hover {
    background: rgba(214, 48, 49, 0.1);
    color: var(--ios-error);
}

/* Tree View */
.tree-view {
    padding: 20px;
    display: none;
}

.tree-view.active {
    display: block;
}

.tree-node {
    margin-left: 20px;
}

.tree-node-root {
    margin-left: 0;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.tree-item:hover {
    background: rgba(108, 92, 231, 0.05);
}

.tree-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--ios-text-secondary);
    transition: transform 0.2s;
}

.tree-toggle.expanded {
    transform: rotate(90deg);
}

.tree-key {
    font-weight: 500;
    color: var(--ios-accent-purple);
}

.tree-type {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--ios-bg-light);
    color: var(--ios-text-secondary);
}

.tree-value {
    color: var(--ios-text-primary);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
}

.tree-children {
    display: none;
}

.tree-children.expanded {
    display: block;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--ios-bg-white);
    border-radius: var(--ios-radius-md);
    box-shadow: var(--ios-shadow-sm);
    border: 1px solid var(--ios-border-color);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--ios-border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* Validation Status */
.validation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--ios-radius-sm);
    font-size: 0.9rem;
}

.validation-status.valid {
    background: rgba(0, 184, 148, 0.1);
    color: var(--ios-success);
}

.validation-status.invalid {
    background: rgba(214, 48, 49, 0.1);
    color: var(--ios-error);
}

/* Boolean Switch */
.bool-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.bool-switch.active {
    background: var(--ios-success);
}

.bool-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.bool-switch.active::after {
    transform: translateX(24px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--ios-accent-purple);
    border-radius: 50%;
    animation: iosSpin 1s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ios-text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 20px;
}

/* Nested Indicators */
.nested-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--ios-bg-light);
    border-radius: var(--ios-radius-sm);
    font-size: 0.8rem;
    color: var(--ios-text-secondary);
    cursor: pointer;
}

.nested-indicator:hover {
    background: rgba(108, 92, 231, 0.1);
}

.indent-level {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ios-text-light);
}

/* IPA Checker Result Header */
.ipa-checker-result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ios-border-color);
    flex-wrap: wrap;
}

.ipa-checker-app-icon-container {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: var(--ios-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    box-shadow: var(--ios-shadow-light);
}

.ipa-checker-app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ipa-checker-app-info {
    flex: 1;
    min-width: 200px;
}

.ipa-checker-app-info h2 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: var(--ios-text-dark);
}

.ipa-checker-app-info p {
    margin: 0;
    color: var(--ios-text-muted);
}

.ipa-checker-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ipa-checker-status-badge.signed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--ios-success-color);
}

.ipa-checker-status-badge.unsigned {
    background: rgba(220, 53, 69, 0.1);
    color: var(--ios-error-color);
}

.ipa-checker-status-badge.adhoc {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.ipa-checker-status-badge.enterprise {
    background: rgba(0, 153, 204, 0.1);
    color: var(--ios-primary-color);
}

/* IPA Checker Sections */
.ipa-checker-section {
    margin-bottom: 25px;
}

.ipa-checker-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ios-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ipa-checker-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ipa-checker-info-item {
    background: var(--ios-bg-light);
    padding: 15px;
    border-radius: var(--ios-radius-sm);
    border: 1px solid var(--ios-border-color);
}

.ipa-checker-info-label {
    font-size: 0.75rem;
    color: var(--ios-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ipa-checker-info-value {
    font-weight: 600;
    color: var(--ios-text-dark);
    word-break: break-all;
}

.ipa-checker-info-value.mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
}

.ipa-checker-info-value.success {
    color: var(--ios-success-color);
}

.ipa-checker-info-value.warning {
    color: #856404;
}

.ipa-checker-info-value.error {
    color: var(--ios-error-color);
}

/* Certificate Box */
.ipa-checker-cert-box {
    background: var(--ios-bg-light);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    padding: 20px;
    margin-top: 15px;
}

.ipa-checker-cert-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ios-border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.ipa-checker-cert-item:last-child {
    border-bottom: none;
}

.ipa-checker-cert-label {
    color: var(--ios-text-muted);
    font-size: 0.9rem;
}

.ipa-checker-cert-value {
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* UDID Section */
.ipa-checker-udid-section {
    display: none;
}

.ipa-checker-udid-section.active {
    display: block;
}

.ipa-checker-udid-list {
    background: var(--ios-bg-light);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-sm);
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
}

.ipa-checker-udid-item {
    padding: 6px 0;
    border-bottom: 1px dashed var(--ios-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ipa-checker-udid-item:last-child {
    border-bottom: none;
}

.ipa-checker-udid-count {
    background: var(--ios-primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Warning */
.ipa-checker-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--ios-radius-sm);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.ipa-checker-warning-icon {
    font-size: 1.5rem;
}

.ipa-checker-warning-text {
    color: #856404;
}

/* Copy Button */
.ipa-checker-copy-btn {
    background: var(--ios-primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--ios-radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ipa-checker-copy-btn:hover {
    background: var(--ios-primary-hover);
}

.ipa-checker-copy-btn.copied {
    background: var(--ios-success-color);
}

/* Other Tools */
.ipa-checker-other-tools {
    background: var(--ios-bg-card);
    border: 1px solid var(--ios-border-color);
    border-radius: var(--ios-radius-md);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--ios-shadow-light);
}

.ipa-checker-other-tools-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ios-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .ipa-checker-result-header {
        flex-direction: column;
        text-align: center;
    }

    .ipa-checker-info-grid {
        grid-template-columns: 1fr;
    }

    .ipa-checker-cert-item {
        flex-direction: column;
        gap: 5px;
    }

    .ipa-checker-cert-value {
        text-align: left;
        max-width: 100%;
    }
}

/* ===== 21. Legacy & Bundle ID Compatible Styles ===== */

/* Map bundleid-howto-steps to ios-howto-steps style */

/* Base styling for FAQ section inside bundleid pages */
.bundleid-faq h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ios-text-primary);
}

.bundleid-faq p {
    color: var(--ios-text-secondary);
    line-height: 1.6;
}