/* Themes CSS - AllToTextAI */

/* Light Theme (Default) */
:root {
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8fafc;
    --theme-bg-tertiary: #f1f5f9;
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #475569;
    --theme-text-tertiary: #64748b;
    --theme-border-primary: #e2e8f0;
    --theme-border-secondary: #cbd5e1;
}

/* Dark Theme */
[data-theme="dark"] {
    --theme-bg-primary: #1e293b;
    --theme-bg-secondary: #0f172a;
    --theme-bg-tertiary: #334155;
    --theme-text-primary: #f8fafc;
    --theme-text-secondary: #cbd5e1;
    --theme-text-tertiary: #94a3b8;
    --theme-border-primary: #334155;
    --theme-border-secondary: #475569;
    
    /* Override main colors for dark theme */
    --color-gray-50: #1e293b;
    --color-gray-100: #334155;
    --color-gray-200: #475569;
    --color-gray-300: #64748b;
    --color-gray-600: #cbd5e1;
    --color-gray-900: #f8fafc;
}

/* Apply theme colors */
body {
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.header {
    background: var(--theme-bg-primary);
    border-bottom-color: var(--theme-border-primary);
}

.upload-zone {
    background: var(--theme-bg-primary);
    border-color: var(--theme-border-secondary);
}

.upload-zone:hover {
    background: var(--theme-bg-tertiary);
}

.file-info {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border-primary);
}

.conversion-btn {
    background: var(--theme-bg-primary);
    border-color: var(--theme-border-secondary);
    color: var(--theme-text-primary);
}

.conversion-btn:hover {
    background: var(--theme-bg-tertiary);
}

.conversion-title {
    color: var(--theme-text-primary);
}

.conversion-desc {
    color: var(--theme-text-secondary);
}

.progress-tracker,
.result-area {
    background: var(--theme-bg-primary);
    border-color: var(--theme-border-primary);
}

.result-preview {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border-primary);
}

.result-text {
    color: var(--theme-text-primary);
}

/* Theme Toggle Button (if needed) */
.theme-toggle {
    background: none;
    border: 1px solid var(--theme-border-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    cursor: pointer;
    color: var(--theme-text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Override transitions for specific elements that shouldn't animate */
.progress-fill,
.btn,
.upload-zone {
    transition: all 0.2s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1d4ed8;
        --theme-border-primary: #000000;
        --theme-border-secondary: #333333;
    }
    
    [data-theme="dark"] {
        --theme-border-primary: #ffffff;
        --theme-border-secondary: #cccccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .header,
    .conversion-panel,
    .convert-section,
    .progress-tracker,
    .result-actions {
        display: none !important;
    }
    
    .result-area {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .result-preview {
        background: white;
        border: none;
        max-height: none;
        overflow: visible;
    }
    
    body {
        background: white;
        color: black;
    }
}
