/**
 * Limpador de Metadados - Estilos
 * Design moderno e profissional
 * 
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
    /* Color Palette - Ultra Black Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0d0d0d;
    --bg-card-hover: #161616;
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Google Ads Colors */
    --accent-primary: #4285f4;
    --accent-secondary: #34a853;
    --accent-warning: #fbbc04;
    --accent-danger: #ea4335;
    --accent-success: #34a853;
    
    --gradient-primary: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    --gradient-google: linear-gradient(135deg, #4285f4 0%, #ea4335 25%, #fbbc04 50%, #34a853 75%, #4285f4 100%);
    --gradient-secondary: linear-gradient(135deg, #111111 0%, #000000 100%);
    --gradient-glow: linear-gradient(135deg, rgba(66, 133, 244, 0.15) 0%, rgba(52, 168, 83, 0.15) 100%);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-focus: rgba(66, 133, 244, 0.5);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(66, 133, 244, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    --font-main: 'JetBrains Mono', 'Fira Code', monospace;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ===== Custom Scrollbar (global) ===== */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
}

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    transition: background var(--transition-fast);
}

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

::-webkit-scrollbar-thumb:active {
    background: var(--text-secondary);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(66, 133, 244, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(52, 168, 83, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(234, 67, 53, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-secondary); }

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

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== Header ===== */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon i {
    font-size: 22px;
    color: #000;
}

/* FontAwesome Icon Base Alignment — regra global */
.fa-solid,
.fa-regular,
.fa-brands {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.125em;
    flex-shrink: 0;
    line-height: 1;
    height: 1em;
    transform: translateY(-0.0625em); /* correção óptica: compensa descender space em texto uppercase/mixed */
}

.icon-xs { font-size: 12px; }
.icon-sm { font-size: 14px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 28px; }

.icon-spin {
    animation: spin 1s linear infinite;
}

.icon-warning {
    font-size: 10px;
    color: var(--accent-warning);
    margin-left: 4px;
}

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

/* Google Ads Badge */
.google-ads-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.google-ads-icon {
    width: 18px;
    height: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 34px;
    letter-spacing: 0.01em;
}

.status-badge span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.files-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1;
}

.files-counter i {
    font-size: 12px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.15));
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-badge i {
    font-size: 10px;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 34px;
}

.status-badge:empty::after {
    content: '\00a0';
    visibility: hidden;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn i {
    font-size: 14px;
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: #3b7de8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}

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

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

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: rgba(234, 67, 53, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.btn-danger:hover {
    background: rgba(234, 67, 53, 0.2);
}

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

.btn-process,
.btn-clear {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
}

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

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    padding: 24px 0;
}

.grid-layout {
    display: flex;
    gap: 24px;
    max-width: 100%;
}

.left-column {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.right-column {
    width: 340px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 70px;
}

@media (max-width: 1200px) {
    .right-column {
        width: 300px;
    }
    .grid-layout {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .grid-layout {
        flex-direction: column;
    }
    
    .right-column {
        width: 100%;
        position: static;
    }
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.card-title-icon {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.card-title-icon i {
    font-size: 16px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.card-body {
    padding: 16px 18px;
}

/* ===== Upload Zone ===== */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

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

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
    opacity: 1;
}

.upload-zone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-zone-icon i {
    font-size: 32px;
    color: #000;
    z-index: 1;
}

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

.upload-zone-subtitle {
    color: var(--text-secondary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

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

.format-tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== File Input Hidden ===== */
.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

/* ===== Config Panel ===== */
.config-section {
    margin-bottom: 16px;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1;
}

.config-section-title i {
    opacity: 0.7;
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.config-row:last-child {
    margin-bottom: 0;
}

.config-label {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-value {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.config-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

/* ===== Form Elements ===== */
.form-select,
.form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23606070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ===== Range Slider ===== */
.range-slider {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
    transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ===== Checkbox Toggle ===== */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle-item:hover {
    background: var(--bg-card-hover);
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.toggle-switch .toggle-slider::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--bg-primary);
}

/* ===== Files List ===== */
.files-list {
    max-height: 400px;
    overflow-y: auto;
}


.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    overflow: hidden;
    max-width: 100%;
}

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

.file-item:hover {
    background: var(--bg-tertiary);
}

.file-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon i {
    font-size: 20px;
}

.file-icon.image { color: var(--accent-primary); }
.file-icon.video { color: var(--accent-secondary); }

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

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

.file-meta i {
    font-size: 10px;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
    position: relative;
    top: 2px;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.file-status i {
    font-size: 12px;
}

.file-status.pending {
    background: rgba(255, 170, 0, 0.1);
    color: var(--accent-warning);
}

.file-status.processing {
    background: rgba(0, 168, 255, 0.1);
    color: var(--accent-secondary);
}

.file-status.done {
    background: rgba(0, 221, 119, 0.1);
    color: var(--accent-success);
}

.file-status.error {
    background: rgba(255, 68, 102, 0.1);
    color: var(--accent-danger);
}

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

.file-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-action-btn i {
    font-size: 14px;
}

.file-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ===== Results Panel ===== */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== Progress Bar ===== */
.progress-container {
    margin-bottom: 24px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width var(--transition-slow);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Download Actions ===== */
.download-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ===== Score Badge ===== */
.uniqueness-score {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(52, 168, 83, 0.08) 100%);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

.score-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
}

.score-info h4,
.score-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1;
}

.score-title i {
    font-size: 12px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.score-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.empty-state-icon {
    margin-bottom: 16px;
    opacity: 0.4;
    display: flex;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 42px;
}

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

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

.toast {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

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

.toast.success { border-left: 4px solid var(--accent-success); }
.toast.error { border-left: 4px solid var(--accent-danger); }
.toast.warning { border-left: 4px solid var(--accent-warning); }
.toast.info { border-left: 4px solid var(--accent-secondary); }

.toast-icon {
    display: flex;
    align-items: center;
}

.toast-icon i {
    font-size: 16px;
}

.toast.success .toast-icon { color: var(--accent-success); }
.toast.error .toast-icon { color: var(--accent-danger); }
.toast.warning .toast-icon { color: var(--accent-warning); }
.toast.info .toast-icon { color: var(--accent-secondary); }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 4px;
}

.toast-close i {
    font-size: 13px;
}

.toast-close:hover {
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Footer ===== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-brand i {
    font-size: 14px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .upload-zone {
        padding: 40px 20px;
    }
    
    .results-stats {
        gap: 16px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
    }
    
    .toast {
        max-width: 100%;
    }
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.4s ease;
}

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

/* ===== Utilities ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: var(--accent-success); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
