:root {
    /* iOS 26 Light theme colors */
    --primary-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --secondary-gradient: linear-gradient(135deg, #30D158 0%, #00C7BE 100%);
    --accent-gradient: linear-gradient(135deg, #FF9500 0%, #FF3B30 100%);
    --background-primary: #F2F2F7;
    --background-secondary: #FFFFFF;
    --background-tertiary: rgba(255, 255, 255, 0.6);
    --background-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #000000;
    --text-secondary: #3C3C43;
    --text-tertiary: #8E8E93;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 16px 64px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 32px 128px rgba(0, 0, 0, 0.16);
    --blur-strength: blur(40px);
    --border-radius-small: 16px;
    --border-radius-medium: 24px;
    --border-radius-large: 32px;
}

[data-theme="dark"] {
    /* iOS 26 Dark theme colors */
    --primary-gradient: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
    --secondary-gradient: linear-gradient(135deg, #32D74B 0%, #64D2FF 100%);
    --accent-gradient: linear-gradient(135deg, #FF9F0A 0%, #FF453A 100%);
    --background-primary: #000000;
    --background-secondary: #1C1C1E;
    --background-tertiary: rgba(28, 28, 30, 0.8);
    --background-glass: rgba(28, 28, 30, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #F2F2F7;
    --text-tertiary: #8E8E93;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 32px 128px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    background: var(--background-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--background-glass);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--blur-strength);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lock-emoji {
    font-size: 1.5rem;
    filter: none;
    color: initial;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.rgpd-logo {
    width: 96px;
    height: 96px;
    animation: rotate 10s linear infinite;
}

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

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--background-tertiary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

.nav-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.language-selector {
    background: var(--background-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 8px 12px;
    backdrop-filter: var(--blur-strength);
}

.language-selector select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.language-selector select option {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.theme-toggle {
    background: var(--background-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 8px 16px;
    backdrop-filter: var(--blur-strength);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Format Selector */
.global-format-selector {
    background: var(--background-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 32px;
    margin: 32px auto;
    max-width: 800px;
    backdrop-filter: var(--blur-strength);
    box-shadow: var(--shadow-medium);
}

.format-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.format-card {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.format-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.format-card:hover::before {
    opacity: 0.08;
}

.format-card.selected {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
    box-shadow: var(--shadow-medium);
}

.format-card.selected::before {
    opacity: 0.1;
}

.format-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.format-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.format-description {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

/* Quality Section */
.quality-section {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-medium);
    padding: 24px;
    display: none;
    border: 1px solid var(--border-color);
}

.quality-section.visible {
    display: block;
}

.quality-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.quality-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 16px;
}

.quality-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 16px;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    border: 2px solid white;
}

.quality-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Converter Card */
.converter-card {
    background: var(--background-secondary);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 60px 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    background: var(--background-tertiary);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: #007AFF;
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.upload-area:hover::before, .upload-area.drag-over::before {
    opacity: 0.05;
}

.local-processing-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-light);
    z-index: 1;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.upload-text {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.upload-subtext {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* Batch Info */
.batch-info {
    background: var(--background-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    color: var(--text-secondary);
    backdrop-filter: var(--blur-strength);
    font-weight: 500;
}

/* File Input */
.file-input {
    display: none;
}

/* Buttons */
.btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    margin: 8px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

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

.btn-secondary {
    background: var(--background-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--blur-strength);
}

.btn-success {
    background: var(--secondary-gradient);
}

.btn-danger {
    background: var(--accent-gradient);
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-small);
    font-weight: 700;
}

/* File Queue */
.file-queue {
    margin: 40px 0;
    display: none;
}

.file-queue h3 {
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.file-list {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-large);
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.file-item {
    background: var(--background-secondary);
    border-radius: var(--border-radius-medium);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

.file-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-small);
    object-fit: cover;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1rem;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-pending { 
    background: linear-gradient(135deg, #FF9500 0%, #FFD60A 100%); 
    color: white;
}
.status-processing { 
    background: var(--primary-gradient); 
    color: white;
}
.status-completed { 
    background: var(--secondary-gradient); 
    color: white;
}
.status-error { 
    background: var(--accent-gradient); 
    color: white;
}

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

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 25px 0;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Batch Controls */
.batch-controls {
    text-align: center;
    margin: 25px 0;
    padding: 25px;
    background: var(--background-tertiary);
    border-radius: var(--border-radius-medium);
    display: none;
    border: 1px solid var(--border-color);
}

/* Stats Panel */
.stats-panel {
    background: var(--background-secondary);
    border-radius: var(--border-radius-large);
    padding: 32px;
    margin: 25px 0;
    display: none;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

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

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--background-tertiary);
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    font-weight: 600;
}

/* Features (pour la page présentation) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature {
    background: var(--background-secondary);
    padding: 40px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.feature:hover::before {
    opacity: 0.03;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.security-feature {
    border: 2px solid #30D158;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.05), rgba(0, 199, 190, 0.05));
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: var(--background-secondary);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card.main-service {
    border: 2px solid #007AFF;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2.5rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: #0056b3;
    transform: translateX(4px);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.tool-card {
    background: var(--background-secondary);
    border-radius: var(--border-radius-medium);
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.content-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.contact-info {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-medium);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-email {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007AFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #0056b3;
    transform: scale(1.05);
}

/* Status Messages */
.status-message {
    padding: 20px 28px;
    border-radius: var(--border-radius-medium);
    margin: 25px 0;
    text-align: center;
    display: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.status-success {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.1), rgba(0, 199, 190, 0.1));
    color: #30D158;
    border-color: #30D158;
}

.status-error {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1), rgba(255, 149, 0, 0.1));
    color: #FF3B30;
    border-color: #FF3B30;
}

.status-warning {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 214, 10, 0.1));
    color: #FF9500;
    border-color: #FF9500;
}

/* Processing Indicator */
.processing-indicator {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--background-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 18px 28px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-heavy);
    display: none;
    z-index: 1000;
    backdrop-filter: var(--blur-strength);
    font-weight: 700;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--background-secondary);
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}

.footer p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #005cbf;
    text-decoration: underline;
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 25px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .nav-links {
        order: 2;
        gap: 4px;
    }

    .nav-controls {
        order: 1;
        gap: 8px;
    }

    .container {
        padding: 16px;
    }

    .header h1 {
        font-size: 2.2rem;
    }
    
    .converter-card, .content-page {
        padding: 24px;
        border-radius: var(--border-radius-medium);
    }
    
    .upload-area {
        padding: 40px 20px;
        border-radius: var(--border-radius-medium);
    }

    .format-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .processing-indicator {
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: center;
    }

    .global-format-selector, .content-page {
        padding: 24px;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .format-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}