/* ══ VideoReview — Light Mode Theme ══════════════════════════════════════════
   Dark is the default (defined inline in each page).
   Adding data-theme="light" to <html> switches to this palette.
   ══════════════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  --bg:      #ffffff;
  --bg2:     #ffffff;
  --bg3:     #f6f6f7;
  --bg4:     #ececee;
  --bg5:     #e0e0e3;
  --red:     #E8000E;
  --text:    #111111;
  --text2:   rgba(17,17,17,0.78);
  --text3:   rgba(17,17,17,0.55);
  --border:  rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.14);
  --border3: rgba(0,0,0,0.22);
  --side-bg: #ffffff;
}

/* Smooth transitions on all themed elements */
html, body,
.topnav, .topnav-search,
.page-header, .filter-bar, .proj-filter-bar,
.video-card, .project-card, .vid-card, .vid-thumb,
.content-area, .main-content,
.modal, .modal-overlay,
.home-dropzone, .upload-card, .upload-card-section,
.proj-header, .proj-section, .proj-section-head,
.filter-panel, .vc-dropdown,
.bulk-bar, .file-preview,
.btn, .filter-select, .form-group input,
.form-group textarea, .form-group select,
td, th, tr {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease, box-shadow 0.2s ease;
}


/* ══ SHARED / GLOBAL ═══════════════════════════════════════════════════════ */

/* Topnav */
html[data-theme="light"] .topnav {
  background: #ffffff;
  border-bottom-color: #E8000E;
}
html[data-theme="light"] .topnav-logo-mark { color: #111; }
html[data-theme="light"] .topnav-logo-sub { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .topnav-link { color: rgba(0,0,0,0.65); }
html[data-theme="light"] .topnav-link:hover { background: rgba(0,0,0,0.05); color: #111; }
html[data-theme="light"] .topnav-link.active { background: rgba(0,0,0,0.06); color: #111; }
html[data-theme="light"] .topnav-search { background: #f0f0f4; border-color: rgba(0,0,0,0.17); }
html[data-theme="light"] .topnav-search input { background: #f0f0f4; border-color: rgba(0,0,0,0.17); color: #111; }
html[data-theme="light"] .topnav-search input::placeholder { color: rgba(0,0,0,0.35); }
html[data-theme="light"] .topnav-search-icon { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .topnav-divider { background: rgba(0,0,0,0.14); }

/* Page headers & titles */
html[data-theme="light"] .page-title { color: #111; }
html[data-theme="light"] .page-subtitle { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .breadcrumb a { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .breadcrumb-sep { opacity: 0.3; }

/* Buttons */
html[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
  color: #111111;
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.35);
  color: #111;
}
html[data-theme="light"] .view-toggle-btn {
  border-color: rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.5);
}
html[data-theme="light"] .view-toggle-btn.active {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}

/* Filter selects */
html[data-theme="light"] .filter-select {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}
html[data-theme="light"] .filter-dropdown-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}
html[data-theme="light"] .filter-dropdown-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.35);
  color: #111;
}

/* Form inputs */
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .form-group select {
  background: #f5f5f9;
  border-color: rgba(0,0,0,0.17);
  color: #111;
}
html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder { color: rgba(0,0,0,0.3); }
html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group textarea:focus { border-color: var(--red); }
html[data-theme="light"] .form-group label { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .optional { color: rgba(0,0,0,0.35); }

/* Modals */
html[data-theme="light"] .modal {
  background: #ffffff;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
html[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.45); }
html[data-theme="light"] .modal-header { border-bottom-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .modal-title { color: #111; }
html[data-theme="light"] .modal-footer { border-top-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .modal-close { border-color: rgba(0,0,0,0.16); color: rgba(0,0,0,0.5); }
html[data-theme="light"] .modal-close:hover { background: rgba(0,0,0,0.05); color: #111; }
html[data-theme="light"] .modal-tab { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .modal-tab:hover { color: rgba(0,0,0,0.7); }
html[data-theme="light"] .modal-tab.active { color: #111; }

/* Toast */
html[data-theme="light"] .toast {
  background: #ffffff;
  border-color: rgba(0,0,0,0.14);
  color: #111;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
html[data-theme="light"] .toast.success { border-color: rgba(34,197,94,0.5); color: #16a34a; }
html[data-theme="light"] .toast.error { border-color: rgba(239,68,68,0.5); color: #dc2626; }

/* Empty states */
html[data-theme="light"] .empty-state-sub { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .empty-state-icon { color: rgba(0,0,0,0.2); }

/* Bulk bar */
html[data-theme="light"] .bulk-bar {
  background: #ffffff;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
html[data-theme="light"] .bulk-bar-label { color: #111; }


/* ══ ADMIN — INDEX (DASHBOARD) ═════════════════════════════════════════════ */

/* Drop zone */
html[data-theme="light"] .home-dropzone { border-color: #000; }
html[data-theme="light"] .home-dropzone:hover,
html[data-theme="light"] .home-dropzone.drag-over {
  border-color: var(--red);
  background: rgba(232,0,14,0.03);
}
html[data-theme="light"] .dz-icon { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .dz-title { color: #111; }
html[data-theme="light"] .dz-sub { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .dz-or { color: rgba(0,0,0,0.35); }
html[data-theme="light"] .dz-upload-btn {
  border-color: rgba(0,0,0,0.2);
  color: #111;
  background: rgba(0,0,0,0.03);
}
html[data-theme="light"] .dz-upload-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.35);
}
html[data-theme="light"] .dz-progress-bar { background: rgba(0,0,0,0.1); }
html[data-theme="light"] .dz-progress-label { color: rgba(0,0,0,0.45); }

/* Video cards */
html[data-theme="light"] .video-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .video-card:hover { border-color: rgba(0,0,0,0.2); }
html[data-theme="light"] .video-card.selected { border-color: var(--red); }
html[data-theme="light"] .vc-footer { border-top-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .vc-title { color: #111; }
html[data-theme="light"] .vc-meta { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .vc-check {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.3);
}
html[data-theme="light"] .vc-thumb { background: #e8e8ec; }
html[data-theme="light"] .vc-thumb-placeholder { color: rgba(0,0,0,0.25); }
html[data-theme="light"] .vc-badge { color: #fff; } /* keep badge white on colored bg */
html[data-theme="light"] .vc-menu-btn {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}
html[data-theme="light"] .vc-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
html[data-theme="light"] .vc-dropdown-item { color: #111; }
html[data-theme="light"] .vc-dropdown-item:hover { background: rgba(0,0,0,0.05); }
html[data-theme="light"] .vc-dropdown-item svg { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .vc-dropdown-sep { background: rgba(0,0,0,0.08); }
html[data-theme="light"] .vc-duration { color: #fff; } /* keep overlay readable */

/* Project chips (dashboard rail) */
html[data-theme="light"] .proj-chip { background: #f5f5f9; border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .proj-chip:hover { border-color: rgba(0,0,0,0.2); }
html[data-theme="light"] .proj-chip-name { color: #111; }
html[data-theme="light"] .proj-chip-meta { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .proj-chip-del { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .proj-chip-del:hover { color: #E8000E; background: rgba(232,0,14,0.08); }
html[data-theme="light"] .proj-chip-dots {
  color: rgba(0,0,0,0.4) !important;
  border-color: rgba(0,0,0,0.12) !important;
  background: transparent !important;
}
html[data-theme="light"] .proj-chip-dots:hover {
  background: rgba(0,0,0,0.07) !important;
  border-color: rgba(0,0,0,0.22) !important;
  color: #111 !important;
}
html[data-theme="light"] .proj-rail-title { color: rgba(0,0,0,0.45); }

/* Chip context menu */
html[data-theme="light"] #projChipMenu {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.14) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
}
html[data-theme="light"] .pcm-item { color: #111 !important; }
html[data-theme="light"] .pcm-item svg { color: rgba(0,0,0,0.45) !important; }
html[data-theme="light"] .pcm-item:hover { background: rgba(0,0,0,0.05) !important; }
html[data-theme="light"] .pcm-item:hover svg { color: rgba(0,0,0,0.75) !important; }
html[data-theme="light"] .pcm-sep { background: rgba(0,0,0,0.08) !important; }
html[data-theme="light"] .pcm-item.danger { color: #E8000E !important; }

/* Delete confirm modal */
html[data-theme="light"] .del-modal { background: #ffffff; border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .del-modal-title { color: #111; }
html[data-theme="light"] .del-modal-sub { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .del-modal-x { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .del-modal-x:hover { background: rgba(0,0,0,0.06); color: #111; }
html[data-theme="light"] .del-modal-cancel { color: rgba(0,0,0,0.6); }

/* Project info modal */
html[data-theme="light"] .proj-info-modal { background: #ffffff; border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .proj-info-name { color: #111; }
html[data-theme="light"] .proj-info-label { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .proj-info-value { color: #111; }
html[data-theme="light"] .proj-info-value.dim { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .proj-info-x { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .proj-info-x:hover { background: rgba(0,0,0,0.06); color: #111; }
html[data-theme="light"] .proj-info-sep { background: rgba(0,0,0,0.08); }

/* Rename project modal */
html[data-theme="light"] .proj-rename-modal { background: #ffffff; border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .proj-rename-title { color: #111; }
html[data-theme="light"] .proj-rename-x { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .proj-rename-x:hover { background: rgba(0,0,0,0.06); color: #111; }
html[data-theme="light"] .proj-rename-input {
  background: #f5f5f9;
  border-color: rgba(0,0,0,0.2);
  color: #111;
}
html[data-theme="light"] .proj-rename-input::placeholder { color: rgba(0,0,0,0.3); }
html[data-theme="light"] .proj-rename-cancel { color: rgba(0,0,0,0.6); border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.04); }

/* Filter panel */
html[data-theme="light"] .filter-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}
html[data-theme="light"] .filter-panel-head { color: rgba(0,0,0,0.45); border-bottom-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .filter-panel-item { color: #111; }
html[data-theme="light"] .filter-panel-item:hover { background: rgba(0,0,0,0.04); }

/* Section headers / sort labels */
html[data-theme="light"] .section-label { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .sort-label { color: rgba(0,0,0,0.4); }


/* ══ ADMIN — PROJECT PAGE ══════════════════════════════════════════════════ */

html[data-theme="light"] .proj-header-top { border-bottom-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .proj-owner-badge { border-color: rgba(0,0,0,0.16); color: rgba(0,0,0,0.5); }
html[data-theme="light"] .proj-filter-bar { border-bottom-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .proj-section { background: #ffffff; border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .proj-section-head { border-bottom-color: rgba(0,0,0,0.09); color: #111; }
html[data-theme="light"] .vid-table thead th { border-bottom-color: rgba(0,0,0,0.09); color: rgba(0,0,0,0.45); }
html[data-theme="light"] .vid-table tbody td { border-bottom-color: rgba(0,0,0,0.07); color: #111; }
html[data-theme="light"] .vid-table tbody tr:hover td { background: rgba(0,0,0,0.02); }
html[data-theme="light"] .vid-thumb { background: #e8e8ec; }
html[data-theme="light"] .vid-thumb-placeholder,
html[data-theme="light"] .vid-card-thumb-placeholder { color: rgba(0,0,0,0.25); }
html[data-theme="light"] .vid-card { background: #ffffff; border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .vid-card:hover { border-color: rgba(0,0,0,0.2); }
html[data-theme="light"] .vid-card-title { color: #111; }
html[data-theme="light"] .vid-card-meta { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .vid-filename { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .vid-card-duration { color: #fff; } /* keep overlay readable */
html[data-theme="light"] .share-row { border-bottom-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .share-row-url input {
  background: #f0f0f4;
  border-color: rgba(0,0,0,0.14);
  color: #111;
}
html[data-theme="light"] .proj-dropzone { border-color: rgba(0,0,0,0.18); }
html[data-theme="light"] .proj-dropzone:hover,
html[data-theme="light"] .proj-dropzone.drag-over {
  background: rgba(232,0,14,0.03);
  border-color: var(--red);
}
html[data-theme="light"] .proj-uploading {
  background: #f5f5f9;
  border-bottom-color: rgba(0,0,0,0.09);
}
html[data-theme="light"] .upload-progress-bar { background: rgba(0,0,0,0.08); }

/* Now working card */
html[data-theme="light"] .now-working { border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .nw-label { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .nw-title { color: #111; }
html[data-theme="light"] .nw-status-btn { color: #111; border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.04); }
html[data-theme="light"] .nw-status-btn:hover { border-color: rgba(0,0,0,0.4); background: rgba(0,0,0,0.07); }
html[data-theme="light"] .nw-status-opt { color: #111; }
html[data-theme="light"] .nw-status-opt:hover { background: rgba(0,0,0,0.05); }
html[data-theme="light"] .nw-status-clear { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .nw-status-clear:hover { background: rgba(0,0,0,0.04); color: #111; }
html[data-theme="light"] .nw-meta { color: rgba(0,0,0,0.4); }


/* ══ ADMIN — UPLOAD PAGE ═══════════════════════════════════════════════════ */

html[data-theme="light"] .upload-card { border-color: rgba(0,0,0,0.1); background: #ffffff; }
html[data-theme="light"] .upload-card-section { border-bottom-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .upload-zone { border-color: rgba(0,0,0,0.18); }
html[data-theme="light"] .upload-zone:hover,
html[data-theme="light"] .upload-zone.drag-over {
  border-color: var(--red);
  background: rgba(232,0,14,0.03);
}
html[data-theme="light"] .upload-zone-title { color: #111; }
html[data-theme="light"] .upload-zone-sub { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .file-preview {
  background: #f5f5f9;
  border-color: rgba(0,0,0,0.14);
}
html[data-theme="light"] .file-preview-name { color: #111; }
html[data-theme="light"] .file-preview-size { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .upload-actions { border-top-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .upload-progress-label { color: rgba(0,0,0,0.45); }


/* ══ REVIEW PAGE ════════════════════════════════════════════════════════ */

/* Header */
html[data-theme="light"] .rv-header { background: #ffffff; border-bottom-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .rv-brand-rule { background: rgba(0,0,0,0.15); }
html[data-theme="light"] .rv-logo-text { color: #111; }
html[data-theme="light"] .rv-logo-text:hover { color: #111; }
html[data-theme="light"] .rv-views { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .rv-icon-btn {
  color: rgba(0,0,0,0.6);
  border-color: rgba(0,0,0,0.12);
  background: none;
}
html[data-theme="light"] .rv-icon-btn:hover {
  background: rgba(0,0,0,0.06);
  color: #111;
  border-color: rgba(0,0,0,0.25);
}

/* Version / status dropdowns */
html[data-theme="light"] .vr-dd-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.16);
  color: #111;
}
html[data-theme="light"] .vr-dd-btn:hover,
html[data-theme="light"] .vr-dd.open .vr-dd-btn {
  border-color: rgba(0,0,0,0.3);
  color: #111;
  background: rgba(0,0,0,0.07);
}
html[data-theme="light"] .vr-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
html[data-theme="light"] .vr-panel-top { border-bottom-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .vr-panel-title { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .vr-panel-header { color: rgba(0,0,0,0.45); border-bottom-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .vr-panel-sep { background: rgba(0,0,0,0.08); }
html[data-theme="light"] .vr-option { color: #111; }
html[data-theme="light"] .vr-option:hover { background: rgba(0,0,0,0.05); }
html[data-theme="light"] .vr-option.active { color: #111; background: rgba(0,0,0,0.05); }
html[data-theme="light"] .vr-option.vr-clear { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .vr-option.vr-clear:hover { color: #111; }
html[data-theme="light"] .vr-new-version-btn {
  color: #111;
  border-color: rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.04);
}
html[data-theme="light"] .vr-new-version-btn:hover {
  border-color: rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.07);
  color: #111;
}
html[data-theme="light"] .vr-version-item { border-bottom-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .vr-version-label { color: #111; }
html[data-theme="light"] .vr-version-sub { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .vr-version-more { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .vr-version-more:hover { color: #111; background: rgba(0,0,0,0.06); }
html[data-theme="light"] .vr-version-thumb-ts { background: rgba(0,0,0,0.75); color: #fff; }

/* Mobile status sub-bar */
html[data-theme="light"] .mob-status-bar {
  background: #f5f5f9;
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .mob-pill {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.14);
  color: #111;
}
html[data-theme="light"] .mob-pill:hover { background: rgba(0,0,0,0.09); }
html[data-theme="light"] .mob-v1-pill {
  background: rgba(232,0,14,0.06);
  border-color: rgba(232,0,14,0.25);
  color: #E8000E;
}
html[data-theme="light"] .mob-views-count { color: rgba(0,0,0,0.35); }

/* Player shell — keep dark regardless of theme */
html[data-theme="light"] .player-shell { background: #141416; }

/* Comment panel */
html[data-theme="light"] .comment-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--red);
}
html[data-theme="light"] .panel-top { background: #ffffff; border-bottom-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .panel-top-label { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .panel-top-btn { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .panel-top-btn:hover { color: #111; background: rgba(0,0,0,0.05); }
html[data-theme="light"] .comment-panel-title-row { background: #ffffff; }
html[data-theme="light"] .comment-heading { color: #111; }
html[data-theme="light"] .comment-panel-title { color: #111; }
html[data-theme="light"] .comment-count-badge { color: rgba(0,0,0,0.45); }
html[data-theme="light"] #exportCommentsBtn {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.14) !important;
  color: rgba(0,0,0,0.6) !important;
}
html[data-theme="light"] #exportCommentsBtn:hover { background: rgba(0,0,0,0.09) !important; color: #111 !important; }
html[data-theme="light"] #exportPanel {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.14) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
}
html[data-theme="light"] .export-opt { color: #111 !important; }
html[data-theme="light"] .export-opt:hover { background: rgba(0,0,0,0.05) !important; color: #111 !important; }
/* Export panel header label (inline font-size:10px div inside #exportPanel) */
html[data-theme="light"] #exportPanel > div:first-child { color: rgba(0,0,0,0.45) !important; }
html[data-theme="light"] .export-panel-label { color: rgba(0,0,0,0.4) !important; }
html[data-theme="light"] .comment-filter-tabs { border-bottom-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .comment-filter-tab,
html[data-theme="light"] .comment-filter-tab:hover,
html[data-theme="light"] .comment-filter-tab.active { color: #111; }
html[data-theme="light"] .comment-filter-tab.active { border-bottom-color: var(--red); }
html[data-theme="light"] .panel-filter-bar { background: #f5f5f9; border-bottom-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .panel-filter-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.14);
  color: #111;
}
html[data-theme="light"] .panel-filter-btn:hover,
html[data-theme="light"] .panel-filter-btn.active { color: #111; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.07); }

/* Comment list */
html[data-theme="light"] .c-item { border-bottom-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .c-item:hover { background: rgba(0,0,0,0.02); }
html[data-theme="light"] .c-item.active { background: rgba(232,0,14,0.04); border-left-color: var(--red); }
html[data-theme="light"] .c-avatar { background: rgba(0,0,0,0.1); color: #111; }
html[data-theme="light"] .c-name { color: #111; }
html[data-theme="light"] .c-ago { color: rgba(0,0,0,0.4); }
html[data-theme="light"] .c-text { color: rgba(0,0,0,0.75); }
html[data-theme="light"] .c-ts {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.55);
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="light"] .c-act-btn { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .c-act-btn:hover { background: rgba(0,0,0,0.06); color: #111; }
html[data-theme="light"] .c-reply-btn { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .c-reply-btn:hover { color: #111; }
html[data-theme="light"] .c-resolve-label { color: rgba(0,0,0,0.45); }
html[data-theme="light"] .comment-empty { color: rgba(0,0,0,0.3); }
html[data-theme="light"] .comment-empty-text { color: rgba(0,0,0,0.35); }

/* Comment panel footer / input */
html[data-theme="light"] .comment-panel-footer {
  background: #ffffff;
  border-top-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .cp-input-wrap {
  background: #f5f5f9;
  border-color: rgba(0,0,0,0.14);
}
html[data-theme="light"] .cp-input { color: #111; background: transparent; }
html[data-theme="light"] .cp-input::placeholder { color: rgba(0,0,0,0.3); }
html[data-theme="light"] #addCommentPanelBtn { color: rgba(0,0,0,0.5); border-color: rgba(0,0,0,0.14); background: rgba(0,0,0,0.04); }
html[data-theme="light"] #addCommentPanelBtn:hover { color: #111; background: rgba(0,0,0,0.08); }

/* Feedback box (comment input drawer) */
html[data-theme="light"] .feedback-box {
  background: #f5f5f9;
  border-color: rgba(0,0,0,0.09);
}
html[data-theme="light"] .feedback-main { border-bottom-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .feedback-textarea { color: #111; background: transparent; }
html[data-theme="light"] .feedback-textarea::placeholder { color: rgba(0,0,0,0.3); }
html[data-theme="light"] .feedback-author {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.14);
  color: #111;
}
html[data-theme="light"] .feedback-author::placeholder { color: rgba(0,0,0,0.3); }
html[data-theme="light"] .feedback-ts-wrap { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .feedback-ts-label { color: rgba(0,0,0,0.6); }
html[data-theme="light"] .feedback-post { color: rgba(0,0,0,0.3); border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .feedback-post.ready { color: #E8000E; border-color: rgba(232,0,14,0.4); }
html[data-theme="light"] .feedback-tool {
  border-color: rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.03);
}
html[data-theme="light"] .feedback-tool:hover { color: #111; background: rgba(0,0,0,0.07); }
html[data-theme="light"] .feedback-tool.active { color: var(--red); border-color: rgba(232,0,14,0.3); }
html[data-theme="light"] .feedback-react-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #111;
}
html[data-theme="light"] .feedback-react-btn:hover { background: rgba(0,0,0,0.08); }
html[data-theme="light"] .feedback-inline-btn { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .feedback-inline-btn:hover { color: #111; background: rgba(0,0,0,0.06); }
html[data-theme="light"] .feedback-footer { border-top-color: rgba(0,0,0,0.06); }

/* More menu panel (inline styled) */
html[data-theme="light"] #moreMenuPanel {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.14) !important;
}

/* Rename modal (inline styled) */
html[data-theme="light"] #renameModal > div {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.14) !important;
}
html[data-theme="light"] #renameModal h2 { color: #111 !important; }
html[data-theme="light"] #renameInput { color: #111 !important; background: #f5f5f9 !important; }
html[data-theme="light"] #renameModalClose { color: rgba(0,0,0,0.4) !important; }
html[data-theme="light"] #renameModalCancel {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.15) !important;
  color: rgba(0,0,0,0.65) !important;
}

/* Delete modal (inline styled) */
html[data-theme="light"] #deleteModal > div {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.14) !important;
}
html[data-theme="light"] #deleteModal h2 { color: #111 !important; }
html[data-theme="light"] #deleteModal p { color: rgba(0,0,0,0.55) !important; }
html[data-theme="light"] #deleteModalClose { color: rgba(0,0,0,0.4) !important; }
html[data-theme="light"] #deleteModalCancel { color: rgba(0,0,0,0.6) !important; }

/* Share modal (inline styled) */
html[data-theme="light"] #shareModal,
html[data-theme="light"] #shareModal > div { background: #ffffff !important; border-color: rgba(0,0,0,0.14) !important; }
html[data-theme="light"] #shareModal h2,
html[data-theme="light"] #shareModal h3 { color: #111 !important; }
html[data-theme="light"] #shareModal p,
html[data-theme="light"] #shareModal label { color: rgba(0,0,0,0.6) !important; }
html[data-theme="light"] #shareModal input[type="text"],
html[data-theme="light"] #shareModal input[type="url"] {
  background: #f5f5f9 !important;
  border-color: rgba(0,0,0,0.17) !important;
  color: #111 !important;
}
html[data-theme="light"] #shareModal [onclick*="close"],
html[data-theme="light"] #shareModalClose { color: rgba(0,0,0,0.4) !important; }
html[data-theme="light"] #createShareFromReview { color: #fff !important; } /* keep on red bg */

/* Info panel (inline styled) */
html[data-theme="light"] #infoPanel { background: #ffffff !important; border-color: rgba(0,0,0,0.14) !important; }
html[data-theme="light"] #infoPanel * { color: #111 !important; }
html[data-theme="light"] #infoPanel .rv-panel-sep { background: rgba(0,0,0,0.08) !important; }


/* ══ SHARE PAGE ════════════════════════════════════════════════════════════ */

html[data-theme="light"] .share-topbar { background: #ffffff; border-bottom-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .share-topbar-brand { color: var(--red); }
html[data-theme="light"] .share-topbar-title { color: #111; }
html[data-theme="light"] .share-topbar [style*="var(--text3)"] { color: rgba(0,0,0,0.45) !important; }
html[data-theme="light"] .share-password-screen { background: var(--bg); }
html[data-theme="light"] .share-password-card { background: #ffffff; border-color: rgba(0,0,0,0.12); }
html[data-theme="light"] .share-password-icon { color: #111; }
html[data-theme="light"] .share-password-title { color: #111; }
html[data-theme="light"] .share-password-sub { color: rgba(0,0,0,0.5); }
html[data-theme="light"] .share-review-layout .comment-panel { background: #ffffff; }
html[data-theme="light"] .share-review-layout .panel-top { background: #ffffff; border-bottom-color: rgba(0,0,0,0.08); }


/* ══ LOGIN PAGE ════════════════════════════════════════════════════════════ */

html[data-theme="light"] .login-page-theme-toggle {
  border-color: rgba(0,0,0,0.18) !important;
  color: rgba(0,0,0,0.6) !important;
  background: rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .login-page-theme-toggle:hover {
  background: rgba(0,0,0,0.08) !important;
}


/* ══ THEME TOGGLE BUTTON ═══════════════════════════════════════════════════ */

.theme-toggle-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border2);
  border-radius: 6px; cursor: pointer;
  color: var(--text); flex-shrink: 0;
  transition: background .15s, border-color .15s;
  position: relative;
}
.theme-toggle-btn:hover { background: rgba(128,128,128,0.1); border-color: var(--border2); }
.theme-toggle-btn .theme-sun-svg,
.theme-toggle-btn .theme-moon-svg {
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), opacity 0.5s;
  transform-origin: center;
}
