/*
 * AudioWave Converter - Main Stylesheet
 * A friendly, vibrant design for audio conversion
 */

/* ============================================
   Custom Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Primary Colors - Warm Coral to Purple Gradient */
    --primary-coral: #FF6B6B;
    --primary-purple: #845EC2;
    --primary-pink: #FF9671;
    --primary-blue: #00C9A7;
    
    /* Accent Colors */
    --accent-yellow: #FFC75F;
    --accent-mint: #00D2FC;
    --accent-lavender: #B39CD0;
    
    /* Neutrals */
    --dark: #1A1A2E;
    --dark-lighter: #252542;
    --gray-dark: #3D3D5C;
    --gray: #6B6B8A;
    --gray-light: #A0A0B8;
    --light: #F4F4F8;
    --white: #FFFFFF;
    
    /* Status Colors */
    --success: #00D9A5;
    --warning: #FFB830;
    --error: #FF5757;
    --info: #00B4D8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-coral) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-mint) 0%, var(--primary-blue) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(132, 94, 194, 0.1);
    --shadow-md: 0 4px 20px rgba(132, 94, 194, 0.15);
    --shadow-lg: 0 8px 40px rgba(132, 94, 194, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(132, 94, 194, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 201, 167, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono {
    font-family: 'Space Mono', monospace;
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(132, 94, 194, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-brand .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 30px rgba(132, 94, 194, 0.6); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Upload Zone
   ============================================ */
.upload-zone {
    background: var(--white);
    border: 3px dashed var(--accent-lavender);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.upload-zone:hover {
    border-color: var(--primary-coral);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.upload-zone:hover::before {
    opacity: 0.03;
}

.upload-zone.dragover {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(132, 94, 194, 0.05));
    transform: scale(1.02);
}

.upload-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.upload-icon i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.upload-subtitle {
    color: var(--gray);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.browse-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition-fast);
}

.browse-link:hover {
    color: var(--primary-coral);
}

.upload-limits {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.upload-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.format-badge {
    background: var(--light);
    color: var(--gray-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.format-badge:hover {
    background: var(--gradient-primary);
    color: white;
}

/* ============================================
   File List
   ============================================ */
.file-list-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
    display: none;
}

.file-list-container.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light);
}

.file-list-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.file-count {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.file-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition-normal);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(132, 94, 194, 0.08));
}

.file-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.file-name {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--gray);
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.file-remove:hover {
    background: var(--error);
    color: white;
}

/* ============================================
   Conversion Options
   ============================================ */
.conversion-options {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
    display: none;
}

.conversion-options.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.options-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.format-option {
    position: relative;
}

.format-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.format-option label:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(132, 94, 194, 0.1));
    border-color: var(--accent-lavender);
}

.format-option input:checked + label {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.format-option .format-name {
    font-weight: 700;
    font-size: 1.125rem;
    font-family: 'Space Mono', monospace;
    margin-bottom: 4px;
}

.format-option .format-type {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quality Settings */
.quality-settings {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.quality-title {
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-title i {
    color: var(--primary-purple);
}

.quality-slider {
    width: 100%;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 8px;
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--white);
    border-radius: var(--radius-full);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--accent-lavender);
}

.btn-secondary:hover {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(132, 94, 194, 0.05));
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.125rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.convert-btn-container {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   Progress Section
   ============================================ */
.progress-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: none;
}

.progress-section.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.progress-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
}

.progress-icon.converting i {
    animation: spin 2s linear infinite;
}

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

.progress-icon.success {
    background: var(--success);
}

.progress-icon.error {
    background: var(--error);
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-subtitle {
    color: var(--gray);
    margin-bottom: 32px;
}

.progress-subtitle .btn {
    margin-top: 16px;
}

.progress-bar-container {
    background: var(--light);
    border-radius: var(--radius-full);
    height: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.progress-percentage {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple);
}

/* ============================================
   Results Section
   ============================================ */
.results-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
    display: none;
}

.results-section.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.results-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-title i {
    color: var(--success);
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.result-icon {
    width: 48px;
    height: 48px;
    background: var(--success);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.result-meta {
    font-size: 0.875rem;
    color: var(--gray);
}

.download-btn {
    background: var(--gradient-accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-all-btn {
    background: var(--gradient-primary);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Supported Formats Section
   ============================================ */
.formats-section {
    padding: 80px 0;
    background: var(--white);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 48px;
}

.format-tag {
    background: var(--light);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-dark);
    transition: var(--transition-normal);
    cursor: default;
}

.format-tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.format-tag.highlight {
    background: var(--gradient-accent);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-desc {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-coral);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-light);
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.share-facebook { background: #1877F2; }
.share-facebook:hover { background: #0d65d9; }

.share-twitter { background: #000000; }
.share-twitter:hover { background: #333333; }

.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { background: #1da851; }

.share-linkedin { background: #0A66C2; }
.share-linkedin:hover { background: #084d94; }

.share-telegram { background: #0088CC; }
.share-telegram:hover { background: #006699; }

.share-reddit { background: #FF4500; }
.share-reddit:hover { background: #cc3700; }

.share-pinterest { background: #E60023; }
.share-pinterest:hover { background: #b8001c; }

.share-email { background: var(--primary-purple); }
.share-email:hover { background: #6b3fa0; }

/* Share Section in Results */
.share-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--light);
    text-align: center;
}

.share-title {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.social-share-buttons.centered {
    justify-content: center;
}

/* Simple Footer (2 columns) */
.footer-simple {
    grid-template-columns: 2fr 1fr;
}

/* Alert Modal */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.alert-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.alert-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.alert-modal-message {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.alert-modal-btn {
    min-width: 150px;
}

/* Format Categories */
.format-categories {
    margin-bottom: 24px;
}

.format-category {
    margin-bottom: 16px;
}

.format-category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light);
}

.more-formats-toggle {
    width: 100%;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.more-formats-toggle i {
    transition: transform 0.3s ease;
}

.more-formats-toggle.active i {
    transform: rotate(180deg);
}

.more-formats {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   Alerts & Notifications
   ============================================ */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(0, 217, 165, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(255, 184, 48, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
    min-width: 300px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: var(--success);
    color: white;
}

.toast-error .toast-icon {
    background: var(--error);
    color: white;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light);
    border-top-color: var(--primary-coral);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   Responsive Design
   ============================================ */
/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .upload-zone {
        padding: 48px 32px;
    }
    
    .format-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .format-option label {
        padding: 16px 12px;
    }
    
    .format-option .format-name {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 28px;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-brand .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .upload-zone {
        padding: 36px 20px;
        border-radius: var(--radius-lg);
    }
    
    .upload-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .upload-title {
        font-size: 1.25rem;
    }
    
    .upload-subtitle {
        font-size: 0.95rem;
    }
    
    .upload-limits {
        font-size: 0.85rem;
    }
    
    .upload-formats {
        gap: 6px;
    }
    
    .format-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .file-list-container {
        padding: 20px;
        margin-top: 24px;
        border-radius: var(--radius-lg);
    }
    
    .file-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .file-list-title {
        font-size: 1.1rem;
    }
    
    .file-item {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .file-info {
        flex: 1;
        min-width: calc(100% - 100px);
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-size {
        font-size: 0.8rem;
    }
    
    .file-meta {
        width: 100%;
        margin-top: 8px;
        justify-content: flex-start;
    }
    
    .conversion-options {
        padding: 20px;
        margin-top: 20px;
        border-radius: var(--radius-lg);
    }
    
    .options-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .format-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .format-option label {
        padding: 14px 8px;
        border-radius: var(--radius-sm);
    }
    
    .format-option .format-name {
        font-size: 0.9rem;
    }
    
    .format-option .format-type {
        font-size: 0.65rem;
    }
    
    .quality-settings {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .quality-title {
        font-size: 0.95rem;
    }
    
    .quality-labels {
        font-size: 0.8rem;
    }
    
    .convert-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .convert-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .progress-section {
        padding: 32px 20px;
        margin-top: 24px;
        border-radius: var(--radius-lg);
    }
    
    .progress-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .progress-title {
        font-size: 1.25rem;
    }
    
    .progress-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .progress-percentage {
        font-size: 1.1rem;
    }
    
    .results-section {
        padding: 20px;
        margin-top: 20px;
        border-radius: var(--radius-lg);
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .results-title {
        font-size: 1.1rem;
    }
    
    .result-item {
        flex-wrap: wrap;
        padding: 12px;
        gap: 12px;
    }
    
    .result-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .result-info {
        flex: 1;
        min-width: calc(100% - 60px);
    }
    
    .result-name {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .result-meta {
        font-size: 0.8rem;
    }
    
    .result-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .result-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
    
    .formats-showcase {
        padding: 50px 0;
    }
    
    .formats-title {
        font-size: 1.5rem;
    }
    
    .format-tags {
        gap: 8px;
        padding: 0 10px;
    }
    
    .format-tag {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-desc {
        font-size: 0.9rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-links li {
        display: inline-block;
    }
    
    .footer-bottom {
        margin-top: 32px;
        padding-top: 20px;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Mobile Large (480px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-brand {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .nav-brand .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }
    
    .nav-brand span {
        display: flex;
    }
    
    .hero {
        padding: 50px 0 30px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .upload-zone {
        padding: 28px 16px;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .upload-title {
        font-size: 1.1rem;
    }
    
    .upload-subtitle {
        font-size: 0.9rem;
    }
    
    .format-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .format-option label {
        padding: 12px 6px;
    }
    
    .format-option .format-name {
        font-size: 0.8rem;
    }
    
    .format-option .format-type {
        font-size: 0.6rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn i {
        font-size: 0.9rem;
    }
}

/* Mobile Small (below 480px) */
@media (max-width: 479px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 40px 0 24px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .upload-zone {
        padding: 24px 12px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .upload-title {
        font-size: 1rem;
    }
    
    .upload-subtitle {
        font-size: 0.85rem;
    }
    
    .upload-limits {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    
    .upload-formats {
        gap: 4px;
    }
    
    .format-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    .file-list-container,
    .conversion-options,
    .progress-section,
    .results-section {
        padding: 16px;
        border-radius: var(--radius-md);
    }
    
    .file-list-title,
    .options-title,
    .results-title {
        font-size: 1rem;
    }
    
    .format-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .format-option label {
        padding: 10px 4px;
    }
    
    .format-option .format-name {
        font-size: 0.75rem;
    }
    
    .format-option .format-type {
        font-size: 0.55rem;
        display: none;
    }
    
    .quality-settings {
        padding: 12px;
    }
    
    .progress-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .progress-title {
        font-size: 1.1rem;
    }
    
    .progress-subtitle {
        font-size: 0.9rem;
    }
    
    .result-item {
        padding: 10px;
    }
    
    .result-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .result-actions .btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .formats-title {
        font-size: 1.25rem;
    }
    
    .format-tag {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 30px 0 16px;
    }
    
    .footer-brand span {
        font-size: 1.1rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.hidden { visibility: hidden; opacity: 0; }
.visible { visibility: visible; opacity: 1; }
