/* =============================================
   DUBBING (Lồng tiếng) - LIGHT THEME
   Selector: html.light
   ============================================= */

/* CSS Variables cho Light Mode */
html.light {
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --error: #ef4444;
}

/* Body Background */
html.light body {
    background-color: #f5f5f5 !important;
    color: #1a1a1a;
}

/* ========== SETTINGS PANEL ========== */
html.light .settings-panel {
    background: transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

html.light .settings-panel::after {
    background: #ffffff;
}

/* ========== ALERT BOX ========== */
html.light .alert-box {
    background: rgba(255, 0, 102, 0.05);
    border-color: rgba(255, 0, 102, 0.2);
    color: #c026d3;
}

/* ========== FORM ELEMENTS ========== */
html.light .lang-label {
    color: #333;
}

html.light .form-select {
    background-color: #ffffff;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

html.light .form-select:hover {
    border-color: #aaa;
}

html.light .dropdown-trigger {
    background: #ffffff;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

html.light .dropdown-trigger:hover {
    border-color: #aaa;
}

html.light .dropdown-menu {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

html.light .dropdown-item {
    color: #555;
    border-bottom-color: #f0f0f0;
}

html.light .dropdown-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

html.light .dropdown-item.selected {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* ========== UPLOAD ZONE ========== */
html.light .upload-zone {
    background: #ffffff;
    border-color: #d0d0d0;
}

html.light .upload-zone:hover {
    background-image: 
        linear-gradient(#ffffff, #ffffff), 
        linear-gradient(60deg, #667eea, #764ba2, #ff0066, #fbbf24, #667eea);
}

html.light .upload-title {
    color: #1a1a1a;
}

html.light .upload-desc {
    color: #666;
}

/* ========== FILE PREVIEW CARD ========== */
html.light .file-icon-box {
    background: #f0f0f0;
}

html.light .file-icon-box i {
    color: #666;
}

html.light .file-name {
    color: #1a1a1a;
}

html.light .file-size {
    color: #888;
}

html.light .custom-audio-player {
    filter: none; /* Bỏ đảo màu audio player trong light mode */
}

html.light .btn-trash {
    color: #999;
}

html.light .btn-trash:hover {
    color: #ef4444;
}

/* ========== TOGGLE SWITCH ========== */
html.light .toggle-label {
    color: #333;
}

html.light .toggle-slider {
    background-color: #ddd;
}

html.light input:checked + .toggle-slider {
    background-color: #1a1a1a;
}

/* ========== SUBMIT BUTTON ========== */
html.light .btn-dub {
    background: #1a1a1a;
    color: #ffffff;
}

html.light .btn-dub:hover:not(:disabled) {
    background: #333;
}

/* ========== HISTORY PANEL ========== */
html.light .history-panel {
    background: #ffffff;
    border-color: #e0e0e0;
}

html.light .history-header {
    border-bottom-color: #e0e0e0;
}

html.light .btn-check-all {
    border-color: #d0d0d0;
    color: #666;
}

html.light .btn-check-all:hover {
    background: #f5f5f5;
    border-color: #aaa;
}

html.light .btn-check-all.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

html.light .btn-check-all.active i {
    color: #ffffff;
}

html.light .btn-bulk {
    border-color: #d0d0d0;
    color: #666;
}

html.light .btn-bulk:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #f5f5f5;
}

html.light .btn-refresh {
    border-color: #d0d0d0;
    color: #888;
}

html.light .btn-refresh:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* ========== HISTORY ITEM ========== */
html.light .history-item {
    border-bottom-color: #e0e0e0;
}

html.light .history-item:hover {
    background: #fafafa;
}

html.light .item-checkbox {
    border-color: #d0d0d0;
}

html.light .item-checkbox.checked {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

html.light .item-checkbox.checked::after {
    color: #ffffff;
}

html.light .item-title {
    color: #1a1a1a;
}

html.light .item-meta {
    color: #888;
}

html.light .credits-amount {
    color: #1a1a1a;
}

/* ========== ACTION BUTTONS ========== */
html.light .btn-play {
    border-color: #d0d0d0;
    color: #666;
}

html.light .btn-play:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #f5f5f5;
}

html.light .btn-play.playing {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

html.light .btn-download {
    color: #666;
}

html.light .btn-download:hover {
    color: #1a1a1a;
    background: #f0f0f0;
}

/* ========== MODAL ========== */
html.light .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

html.light .modal-content {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html.light .modal-header {
    border-bottom-color: #e0e0e0;
}

html.light .modal-header h3 {
    color: #1a1a1a;
}

html.light .modal-body {
    color: #555;
}

/* ========== TOAST ========== */
html.light .toast {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

html.light .toast-text {
    color: #1a1a1a;
}

/* ========== FILTER TABS ========== */
html.light .filter-tabs {
    border-bottom-color: #e0e0e0;
}

html.light .filter-tab {
    color: #666;
}

html.light .filter-tab:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

html.light .filter-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

