* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navigation Styles */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #764ba2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
    font-weight: 500;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    display: inline-block;
}

.flag-en {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect fill="%23012169" width="60" height="30"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23C8102E" stroke-width="4"/><path d="M30,0 V30 M0,15 H60" stroke="%23fff" stroke-width="10"/><path d="M30,0 V30 M0,15 H60" stroke="%23C8102E" stroke-width="6"/></svg>');
}

.flag-in {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect fill="%23FF9933" width="60" height="10"/><rect fill="%23fff" y="10" width="60" height="10"/><rect fill="%23138808" y="20" width="60" height="10"/><circle cx="30" cy="15" r="3" fill="%23000080"/></svg>');
}

.flag-br {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect fill="%23009739" width="60" height="30"/><polygon fill="%23FEDD00" points="30,5 50,15 30,25 10,15"/><circle cx="30" cy="15" r="6" fill="%23002776"/></svg>');
}

.flag-sa {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect fill="%23006C35" width="60" height="30"/><text x="30" y="18" text-anchor="middle" fill="white" font-size="8" font-family="Arial">العربية</text></svg>');
}

.flag-fr {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect fill="%23002654" width="20" height="30"/><rect fill="%23fff" x="20" width="20" height="30"/><rect fill="%23ED2939" x="40" width="20" height="30"/></svg>');
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .language-selector {
        margin-top: 20px;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        display: none;
        margin-top: 10px;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.upload-section {
    margin-bottom: 30px;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: 3px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-input-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.file-input-label.file-selected {
    border-color: #28a745;
    background: #f8fff9;
}

.file-input-label.drag-over {
    border-color: #667eea;
    background: #e8f2ff;
    transform: scale(1.02);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #666;
    transition: color 0.3s ease;
}

.file-input-label:hover .upload-icon {
    color: #667eea;
}

.file-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.file-input-label.file-selected .file-text {
    color: #28a745;
}

.settings-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.settings-section h3 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.3rem;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.9rem;
    opacity: 0.7;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}



.process-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.process-btn:active {
    transform: translateY(0);
}

.process-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-section {
    text-align: center;
    padding: 40px 20px;
}

.progress-section h3 {
    margin-bottom: 25px;
    color: #495057;
    font-size: 1.4rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.result-section {
    text-align: center;
    padding: 40px 20px;
}

.result-section h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.result-info {
    margin-bottom: 30px;
}

.result-info p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.download-area {
    margin: 25px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.download-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.new-file-btn,
.retry-btn,
.home-btn {
    padding: 12px 30px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.new-file-btn:hover,
.retry-btn:hover,
.home-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Success Section Styles */
.success-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-animation {
    margin-bottom: 30px;
}

.success-section .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.success-section h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
}

.success-section p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.success-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Processing Summary Styles */
.processing-summary {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

.summary-content h3 {
    color: #495057;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.summary-details {
    display: grid;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    font-weight: 600;
    color: #6c757d;
    font-size: 1rem;
}

.summary-row .value {
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

.summary-row .value.success {
    color: #28a745;
    font-weight: 600;
}

.success-actions .download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.success-actions .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.success-actions .btn-icon {
    width: 20px;
    height: 20px;
}

.success-actions .btn-text {
    font-weight: normal;
}

/* File Info Section */
.file-info {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.file-info h3 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.file-info p {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.file-info .file-size {
    font-size: 0.95rem;
    font-weight: normal;
    color: #6c757d;
    margin-top: 5px;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 40px 20px;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-section h3 {
    color: #667eea;
    margin: 0;
    font-size: 1.4rem;
}

.loading-section p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.error-section {
    text-align: center;
    padding: 40px 20px;
}

.error-section h3 {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.error-section p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

footer {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    color: #495057;
}

.info-section h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.3rem;
}

.info-section ul {
    list-style: none;
    margin-bottom: 25px;
}

.info-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.supported-formats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.supported-formats h4 {
    margin-bottom: 10px;
    color: #495057;
}

.supported-formats p {
    color: #6c757d;
    font-size: 0.95rem;
}

.output-info {
    background: #e8f5e8;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.output-info h4 {
    margin-bottom: 8px;
    color: #495057;
    font-size: 1.1rem;
}

.output-info p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

.output-info strong {
    color: #28a745;
}

.silence-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.silence-info h4 {
    margin-bottom: 10px;
    color: #495057;
}

.silence-info p {
    margin-bottom: 10px;
    color: #6c757d;
}

.silence-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.silence-info li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #495057;
    font-size: 0.9rem;
}

.silence-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.processing-info {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
    margin-top: 20px;
}

.processing-info h4 {
    margin-bottom: 10px;
    color: #495057;
}

.processing-info p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.processing-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.processing-info li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #495057;
    font-size: 0.9rem;
}

.processing-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #17a2b8;
    font-weight: bold;
}

.processing-info strong {
    color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 25px 20px;
    }
    
    .file-input-label {
        padding: 40px 15px;
    }
    
    .settings-section {
        padding: 20px 15px;
    }
    
    .process-btn {
        font-size: 1.1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .file-input-label {
        padding: 30px 10px;
    }
    
    .upload-icon {
        width: 36px;
        height: 36px;
    }
    
    .settings-section {
        padding: 15px;
    }
}

/* Animation for success/error states */
.result-section,
.error-section {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for process button */
.process-btn:disabled .btn-text {
    opacity: 0.8;
}

.process-btn:disabled .spinner {
    display: inline-block;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: -60px;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

/* File Info and Buttons */
.file-hint {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 10px;
    opacity: 0.8;
}

.upload-btn,
.process-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 280px;
}

.upload-btn.show,
.process-btn.show {
    display: flex;
    animation: slideUp 0.5s ease;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.btn-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-btn:hover,
.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.file-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

.file-details {
    text-align: center;
}

.file-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.file-size {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Upload Page Styles */
.upload-progress-section {
    max-width: 600px;
    margin: 0 auto;
}

.file-info-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #28a745;
}

.file-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.progress-percentage {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #495057;
    font-size: 1.2rem;
}

.upload-complete {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

/* Processing Page Styles */
.processing-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.processing-animation {
    margin-bottom: 40px;
}

.audio-waves {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60px;
    gap: 4px;
    margin-bottom: 20px;
}

.wave {
    width: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; height: 20px; }
.wave:nth-child(2) { animation-delay: 0.2s; height: 35px; }
.wave:nth-child(3) { animation-delay: 0.4s; height: 50px; }
.wave:nth-child(4) { animation-delay: 0.6s; height: 35px; }
.wave:nth-child(5) { animation-delay: 0.8s; height: 20px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

.processing-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
}

.processing-info h4 {
    margin-bottom: 15px;
    color: #495057;
}

.processing-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.processing-info li {
    padding: 8px 0;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding-left: 10px;
    margin: 5px 0;
}

.processing-info li.active {
    background: #e8f4f8;
    color: #495057;
    font-weight: 500;
    transform: translateX(5px);
}

.processing-info li.completed {
    color: #28a745;
    font-weight: 500;
}

/* Completion Page Styles */
.completion-section {
    max-width: 700px;
    margin: 0 auto;
}

.success-animation {
    text-align: center;
    margin-bottom: 40px;
}

.success-animation .success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.success-animation h2 {
    color: #28a745;
    font-size: 2rem;
    margin: 0;
}

.result-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.file-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.file-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.file-stat.highlight {
    border-color: #28a745;
    background: #f8fff9;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #495057;
}

.file-stat.highlight .stat-value {
    color: #28a745;
}

.result-message {
    text-align: center;
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.download-btn.primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 18px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.upload-new-btn.secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    white-space: nowrap;
}

.upload-new-btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.processing-summary {
    background: #e8f4f8;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #17a2b8;
}

.processing-summary h4 {
    margin-bottom: 15px;
    color: #495057;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-list li {
    padding: 5px 0;
    color: #495057;
    font-size: 0.95rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-indicator {
        padding: 0 10px;
    }
    
    .step {
        max-width: 80px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step:not(:last-child)::after {
        left: 40px;
        right: -40px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .file-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .upload-btn,
    .process-btn {
        font-size: 0.95rem;
        padding: 15px 20px;
        min-width: 260px;
        max-width: 95%;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-links li:not(:has(a)) {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #cbd5e0;
    font-size: 0.9rem;
    margin: 0;
}

/* New horizontal footer layout */
.footer-links-row {
    width: 100%;
}

.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-horizontal li {
    margin: 0;
}

.footer-links-horizontal a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links-horizontal a:hover {
    color: #667eea;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-container {
        padding: 30px 20px 20px;
    }
}

/* About Page Styles */
.about-section {
    max-width: 100%;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Creator Section */
.creator-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 20px;
    color: white;
}

.creator-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.creator-image {
    flex-shrink: 0;
    position: relative;
}

.creator-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.creator-image img:hover {
    transform: scale(1.05);
}

.creator-info h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.creator-role {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 500;
}

.creator-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.creator-mission {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Mobile responsive for creator section */
@media (max-width: 768px) {
    .creator-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }
    
    .creator-section {
        padding: 40px 0;
        margin: 40px 0;
    }
    
    .creator-image img {
        width: 150px;
        height: 150px;
    }
    
    .creator-info h3 {
        font-size: 1.9rem;
    }
    
    .creator-role {
        font-size: 1.1rem;
    }
    
    .creator-description {
        font-size: 1rem;
    }
    
    .creator-mission {
        font-size: 1rem;
    }
}

.feature-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-details {
    margin-bottom: 50px;
}

.about-details h3 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.tech-info {
    background: linear-gradient(135deg, #2d374810 0%, #4a556810 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #764ba2;
}

.tech-info h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tech-info p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-header h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .about-details h3 {
        font-size: 1.8rem;
    }
}

/* Contact Page Styles */
.contact-section {
    max-width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
}

.success-message {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 15px;
    border: 1px solid #28a745;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 15px;
}

.success-message p {
    color: #155724;
    font-size: 1.1rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: #4a5568;
    margin: 0;
}

.info-content a {
    color: #667eea;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.support-hours {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 10px;
}

.support-hours h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.support-hours ul {
    margin: 0;
    padding-left: 20px;
}

.support-hours li {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form-container {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.contact-form h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 1.2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn .btn-icon {
    width: 20px;
    height: 20px;
}

/* Privacy Policy Styles */
.privacy-section {
    max-width: 100%;
}

.privacy-header {
    text-align: center;
    margin-bottom: 50px;
}

.privacy-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.privacy-subtitle {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-item {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.privacy-item h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.privacy-text h4 {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 20px;
}

.privacy-text p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.privacy-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.privacy-text li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 8px;
}

.privacy-text strong {
    color: #2d3748;
}

.contact-info-privacy {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.contact-info-privacy p {
    margin-bottom: 10px;
}

/* Mobile styles for horizontal footer */
@media screen and (max-width: 768px) {
    .footer-links-horizontal {
        gap: 20px;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links-horizontal li {
        margin-bottom: 10px;
    }
}

.contact-info-privacy a {
    color: #667eea;
    text-decoration: none;
}

.contact-info-privacy a:hover {
    text-decoration: underline;
}

/* Contact and Privacy Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-header h2,
    .privacy-header h2 {
        font-size: 2rem;
    }
    
    .privacy-item {
        padding: 20px;
    }
}

/* Promo Section Styles */
.promo-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.promo-text {
    flex: 1;
}

.promo-text h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.promo-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.promo-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.promo-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.promo-image {
    flex-shrink: 0;
    position: relative;
}

.promo-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.promo-image img:hover {
    transform: scale(1.05);
}

/* Responsive Design for Promo */
@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-text h3 {
        font-size: 1.3rem;
    }
    
    .promo-text p {
        font-size: 0.95rem;
    }
    
    .promo-image img {
        width: 100px;
        height: 100px;
    }
}