/************************************************************
 * ULTIMATE CONVERTER PRO - I LOVE PDF STYLE
 * Clean, modern design with purple/blue gradient theme
 * All features working with this styling
 ************************************************************/

/* ============ CSS RESET & BASE STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #64748b;
}

a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.btn-tertiary {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.btn-tertiary:hover {
    background: #fde68a;
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.05);
}

.btn-convert {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-convert:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-download {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-download:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
}

.btn-edit, .btn-preview, .btn-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-edit:hover, .btn-preview:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

.btn-remove:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* ============ HEADER ============ */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i {
    color: #7c3aed;
    font-size: 1.8rem;
}

.logo-text {
    color: #1e293b;
}

.logo-pro {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #64748b;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link.active {
    color: #3b82f6;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed 0%, #3b82f6 100%);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #64748b;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============ MAIN CONVERTER AREA ============ */
.main-converter {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.tool-selection {
    margin-bottom: 3rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tool-card.active {
    border-color: #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #7c3aed;
}

.tool-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tool-desc {
    color: #64748b;
    font-size: 0.95rem;
}

/* ============ CONVERTER TOOL SECTIONS ============ */
.converter-tool {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.converter-tool.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #1e293b;
}

.section-header h2 i {
    color: #7c3aed;
}

.section-header p {
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* ============ UPLOAD AREAS ============ */
.upload-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.upload-area.active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

.upload-area.drag-over {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

.upload-icon {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: #334155;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-btn {
    margin-top: 1rem;
}

/* ============ FILE LISTS ============ */
.file-list {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    min-height: 120px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
    color: #7c3aed;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size, .file-duration {
    color: #64748b;
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============ OPTIONS & SETTINGS ============ */
.options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.options label {
    font-weight: 600;
    color: #334155;
}

.options select, .options input {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #334155;
    min-width: 200px;
}

.options input {
    flex: 1;
}

.conversion-settings {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.conversion-settings h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.conversion-settings h3 i {
    color: #7c3aed;
}

.format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.format-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.format-option:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.format-option.active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

.file-type-icon {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group label i {
    color: #7c3aed;
}

.option-group select, .option-group input {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #334155;
    width: 100%;
}

.resize-options {
    display: flex;
    gap: 1rem;
}

.resize-options input {
    flex: 1;
}

.preset-sizes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    font-size: 0.9rem;
}

.preset-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* ============ ADVANCED OPTIONS ============ */
.advanced-options {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.advanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.advanced-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
}

.advanced-header h3 i {
    color: #7c3aed;
}

.toggle-advanced {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-advanced:hover {
    background: #f1f5f9;
}

/* ============ COMPRESSION CONTROLS ============ */
.compression-options {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.compression-options h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.compression-options h3 i {
    color: #7c3aed;
}

.quality-slider {
    width: 100%;
    height: 8px;
    margin: 1rem 0;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #7c3aed 0%, #3b82f6 100%);
    border-radius: 4px;
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2px solid #7c3aed;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.quality-value {
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quality-value span {
    color: #7c3aed;
}

.size-display {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============ IMAGE EDITOR ============ */
.image-editor {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    display: none;
}

.crop-instructions {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.editor-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: white;
}

#editorCanvas {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: white;
}

.crop-overlay {
    position: absolute;
    border: 2px dashed #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    pointer-events: none;
    display: none;
}

.editor-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.editor-btn {
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.editor-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ============ VIDEO/AUDIO PLAYERS ============ */
.video-preview {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: white;
}

.video-preview h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: white;
}

.video-preview h3 i {
    color: #60a5fa;
}

.video-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
}

.trim-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-input-group label {
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-input-group label i {
    color: #7c3aed;
}

.time-input-group input {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.time-hint {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.time-hint i {
    color: #7c3aed;
}

.dual-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* ============ AUDIO TABS ============ */
.audio-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.audio-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.audio-tab:hover {
    background: #e2e8f0;
}

.audio-tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    color: white;
    border-color: #7c3aed;
}

.audio-tool-section {
    display: none;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.audio-tool-section.active {
    display: block;
}

.info-text {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-text i {
    color: #3b82f6;
    margin-top: 0.2rem;
}

/* ============ PROGRESS BARS ============ */
.progress-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    display: none;
}

.progress-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.progress-section h3 i {
    color: #7c3aed;
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #3b82f6 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.server-status i {
    font-size: 1rem;
}

.server-status.online {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.server-status.offline {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============ RESULTS SECTIONS ============ */
.results {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    display: block;

}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.result-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.result-icon {
    font-size: 1.5rem;
    color: #7c3aed;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-details {
    flex: 1;
    min-width: 0;
}

.result-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #334155;
    word-break: break-all;
}

.result-meta {
    color: #64748b;
    font-size: 0.9rem;
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    border-left: 4px solid;
    font-family: 'Inter', sans-serif;
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-info { border-left-color: #3b82f6; }

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============ FILE COUNT BADGES ============ */
.file-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0 0.5rem;
}

/* ============ AUDIO WAVEFORM ============ */
.audio-waveform {
    flex: 1;
    height: 30px;
    background: linear-gradient(90deg, #7c3aed 20%, #3b82f6 80%);
    border-radius: 4px;
    margin: 0 1rem;
    opacity: 0.3;
}

/* ============ FOOTER ============ */
.main-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #94a3b8;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: white;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-tool {
        padding: 1.5rem;
    }
    
    .dual-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .editor-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .editor-btn {
        justify-content: center;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .file-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .format-options {
        justify-content: center;
    }
    
    .format-option {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .audio-tabs {
        justify-content: center;
    }
    
    .audio-tab {
        flex: 1;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .result-actions {
        align-self: flex-end;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}