/* ==========================================================================
   ZenFocus - High-End Light Theme (Chế độ Giao diện Sáng - Tinh Chỉnh Cân Bằng)
   Thiết kế cân bằng thị giác, độ tương phản hoàn hảo, chống chói mắt.
   ========================================================================== */

body.theme-light {
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(148, 163, 184, 0.35);
  --glass-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(148, 163, 184, 0.32);
  --card-hover: #ffffff;
  background-color: #e6ebf2;
  color: #0f172a;
}

/* 1. Nền & Lớp phủ (Dịu mắt, không bị trắng xóa lóa mắt, giữ nguyên chiều sâu ảnh nền) */
body.theme-light #bg-overlay {
  background-color: rgba(230, 236, 244, calc(var(--bg-dimmer) * 0.45 + 0.35));
  backdrop-filter: blur(var(--bg-blur, 0px));
}

/* 2. Web Header */
body.theme-light .web-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

body.theme-light .app-title {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .web-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .web-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 3. Left Sidebar */
body.theme-light .sidebar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(148, 163, 184, 0.3);
}

body.theme-light .greeting-time {
  color: #475569;
  font-weight: 600;
}

body.theme-light .greeting-text {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .summary-pill {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #475569 !important;
  font-weight: 500;
}

body.theme-light .nav-title {
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

body.theme-light .nav-item,
body.theme-light .cat-item {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  color: #1e293b;
  font-weight: 500;
}

body.theme-light .nav-item:hover,
body.theme-light .cat-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-light .nav-item.active,
body.theme-light .cat-item.active {
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-left: 3.5px solid #4f46e5 !important;
}

body.theme-light .nav-count {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

body.theme-light .nav-item.active .nav-count,
body.theme-light .cat-item.active .nav-count {
  background: rgba(99, 102, 241, 0.25);
  color: #3730a3;
  border-color: rgba(99, 102, 241, 0.4);
}

/* 4. Khung thêm công việc mới (Task Creator Card) */
body.theme-light .task-creator-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}

body.theme-light .task-creator-card:focus-within,
body.theme-light .task-creator-card.has-open-dropdown {
  border-color: #4f46e5;
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.18);
}

body.theme-light .creator-icon {
  color: #4f46e5;
}

body.theme-light .creator-input {
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

body.theme-light .creator-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

body.theme-light .creator-options {
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

body.theme-light .meta-picker {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .meta-picker:hover {
  background: #f8fafc !important;
  border-color: #4f46e5 !important;
}

body.theme-light .meta-picker select {
  color: #0f172a !important;
  font-weight: 600;
}

body.theme-light .meta-picker select option {
  background: #ffffff;
  color: #0f172a;
}

body.theme-light .custom-select-trigger,
body.theme-light .custom-datetime-btn,
body.theme-light .recurrence-btn,
body.theme-light .custom-time-trigger,
body.theme-light .custom-date-trigger,
body.theme-light .custom-recurrence-trigger,
body.theme-light .custom-time-label,
body.theme-light .custom-date-label,
body.theme-light .custom-recurrence-label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

body.theme-light .custom-time-label svg,
body.theme-light .custom-date-label svg,
body.theme-light .custom-recurrence-label svg {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
}

body.theme-light .custom-time-label.is-empty,
body.theme-light .custom-date-label.is-empty {
  color: #64748b !important;
}

body.theme-light .custom-time-label.is-empty svg,
body.theme-light .custom-date-label.is-empty svg {
  color: #94a3b8 !important;
  stroke: #94a3b8 !important;
}

body.theme-light .custom-select-arrow,
body.theme-light .custom-datetime-arrow {
  color: #475569 !important;
}

/* 5. Custom Dropdown Popovers trong Light Mode */
body.theme-light .custom-select-dropdown,
body.theme-light .custom-datetime-dropdown,
body.theme-light .recurrence-dropdown,
body.theme-light .custom-time-popover,
body.theme-light .custom-recurrence-popover,
body.theme-light .dt-popover {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 40px -6px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

body.theme-light .custom-select-option {
  color: #1e293b !important;
  font-weight: 500;
}

body.theme-light .custom-select-option:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .custom-select-option.is-selected {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #3730a3 !important;
  font-weight: 700;
}

/* Time Picker Popover Internal Elements */
body.theme-light .time-popover-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .time-header-title {
  color: #0f172a !important;
}

body.theme-light .time-header-title svg {
  color: #0284c7 !important;
}

body.theme-light .dt-ampm-switch {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .dt-ampm-btn {
  color: #64748b !important;
}

body.theme-light .dt-ampm-btn.active {
  background: linear-gradient(135deg, #4f46e5, #0284c7) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35) !important;
}

body.theme-light .time-presets-bar {
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .time-chip {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .time-chip:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

body.theme-light .time-col-title {
  color: #64748b !important;
  font-weight: 700 !important;
}

body.theme-light .time-col-sep {
  color: #94a3b8 !important;
}

body.theme-light .time-num-btn,
body.theme-light .time-min-num-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.theme-light .time-num-btn:hover,
body.theme-light .time-min-num-btn:hover {
  background: #e0f2fe !important;
  border-color: #38bdf8 !important;
  color: #0284c7 !important;
}

body.theme-light .time-num-btn.selected,
body.theme-light .time-min-num-btn.selected {
  background: linear-gradient(135deg, #4f46e5, #0284c7) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4) !important;
}

body.theme-light .time-min-quick-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
}

body.theme-light .time-min-quick-btn:hover {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

body.theme-light .time-popover-footer {
  border-top: 1px solid #e2e8f0 !important;
}

body.theme-light .time-preview-tag {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .preview-label {
  color: #64748b !important;
}

body.theme-light .preview-val {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

body.theme-light .dt-btn-apply {
  background: linear-gradient(135deg, #4f46e5, #0284c7) !important;
  color: #ffffff !important;
}

/* Recurrence Popover Internal Elements */
body.theme-light .rec-popover-header,
body.theme-light .rec-footer {
  border-color: #e2e8f0 !important;
}

body.theme-light .rec-header-title {
  color: #0f172a !important;
}

body.theme-light .rec-mode-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .rec-mode-btn.active {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: #4f46e5 !important;
  color: #4338ca !important;
  font-weight: 700 !important;
}

body.theme-light .rec-hint-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

body.theme-light .rec-day-btn,
body.theme-light .rec-month-day-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.theme-light .rec-day-btn.selected,
body.theme-light .rec-month-day-btn.selected {
  background: linear-gradient(135deg, #4f46e5, #0284c7) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

body.theme-light .rec-chip {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #4338ca !important;
  font-weight: 600 !important;
}

body.theme-light .rec-summary-tag {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .rec-summary-label {
  color: #64748b !important;
}

body.theme-light .rec-summary-val {
  color: #4338ca !important;
}

/* 6. Danh sách công việc (Tasks List) & Header phân nhóm */
body.theme-light .tasks-title {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .tasks-count-badge {
  color: #475569;
  font-weight: 500;
  text-shadow: none;
}

body.theme-light .empty-state {
  color: #475569;
}

body.theme-light .empty-state svg {
  stroke: #64748b;
  opacity: 0.8;
  filter: none;
}

body.theme-light .empty-state-text {
  color: #334155;
  text-shadow: none;
  font-weight: 600;
}

body.theme-light .task-section-header {
  border-bottom: 2px solid rgba(148, 163, 184, 0.35);
}

body.theme-light .task-section-title {
  color: #1e293b;
  font-weight: 800;
}

body.theme-light .section-deadline .task-section-icon {
  color: #0284c7;
}

body.theme-light .section-deadline .task-section-badge {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.35);
  font-weight: 700;
}

body.theme-light .section-recurring .task-section-icon {
  color: #7e22ce;
}

body.theme-light .section-recurring .task-section-badge {
  background: rgba(147, 51, 234, 0.12);
  color: #6b21a8;
  border: 1px solid rgba(147, 51, 234, 0.35);
  font-weight: 700;
}

body.theme-light .section-done .task-section-icon {
  color: #15803d;
}

body.theme-light .section-done .task-section-badge {
  background: rgba(22, 163, 74, 0.12);
  color: #14532d;
  border: 1px solid rgba(22, 163, 74, 0.35);
  font-weight: 700;
}

/* ========================================================
   7. THẺ CÔNG VIỆC (TASK ITEM) - CẢI TIẾN TRỌNG TÂM:
   - Ô tick rõ ràng từng nét
   - Chữ 'công việc' rõ nét, độ tương phản cao
   - Thẻ nổi khối sắc sảo
   ======================================================== */
body.theme-light .task-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.theme-light .task-item:hover {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}

body.theme-light .task-item.done {
  background: rgba(241, 245, 249, 0.85);
  opacity: 0.75;
}

/* Ô TICK HOÀN THÀNH (CHECKBOX): ĐẬM NÉT, RÕ RÀNG */
body.theme-light .custom-checkbox {
  background: #ffffff;
  border: 2px solid #64748b !important; /* Viền xám đậm rõ nét */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-light .custom-checkbox:hover {
  border-color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.08);
}

body.theme-light .task-item.done .custom-checkbox {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

body.theme-light .custom-checkbox svg {
  stroke: #ffffff !important;
  stroke-width: 3 !important;
}

/* Tiêu đề Task */
body.theme-light .task-title {
  color: #0f172a !important;
  font-weight: 700;
  font-size: 14.5px;
}

body.theme-light .task-item.done .task-title {
  color: #64748b !important;
}

/* ========================================================
   BADGES TRONG TASK:
   Sửa chữ 'Công việc' và các thẻ thành màu đậm, tương phản cao
   ======================================================== */
body.theme-light .badge {
  font-weight: 600;
}

/* Chữ 'Công việc', 'Lịch họp', 'Cá nhân', 'Khẩn cấp' */
body.theme-light .badge-category {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important; /* Đen đậm cực kỳ rõ ràng */
}

/* Mức ưu tiên */
body.theme-light .badge-priority-low {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .badge-priority-med {
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
  color: #0284c7 !important; /* Xanh dương đậm nét */
}

body.theme-light .badge-priority-high {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid rgba(217, 119, 6, 0.35) !important;
  color: #b45309 !important; /* Cam đậm dễ đọc */
}

body.theme-light .badge-priority-urgent {
  background: rgba(220, 38, 38, 0.12) !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
  color: #b91c1c !important; /* Đỏ tươi đậm */
}

/* Hạn chót & Đếm ngược */
body.theme-light .deadline-pill.normal {
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
  color: #0369a1 !important; /* Chữ đếm ngược xanh đậm nét */
}

body.theme-light .deadline-pill.soon {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  color: #92400e !important;
}

body.theme-light .deadline-pill.overdue {
  background: rgba(220, 38, 38, 0.12) !important;
  border: 1px solid rgba(220, 38, 38, 0.4) !important;
  color: #991b1b !important;
}

body.theme-light .deadline-pill.completed {
  background: rgba(22, 163, 74, 0.12) !important;
  border: 1px solid rgba(22, 163, 74, 0.35) !important;
  color: #14532d !important;
}

body.theme-light .deadline-pill.snoozed {
  background: #f3e8ff !important;
  border: 1px solid #c084fc !important;
  color: #6b21a8 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(168, 85, 247, 0.12) !important;
}

body.theme-light .deadline-pill.snoozed svg {
  stroke: #6b21a8 !important;
}

body.theme-light .deadline-pill.snoozed span {
  color: inherit !important;
}

body.theme-light .deadline-pill.snoozed:hover {
  background: #ede9fe !important;
  border-color: #9333ea !important;
  color: #581c87 !important;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.25) !important;
}

body.theme-light .deadline-pill.snoozed:hover svg {
  stroke: #581c87 !important;
}

/* Task lặp lại */
body.theme-light .task-item.is-recurring {
  border-left: 3.5px solid #7e22ce !important;
}

body.theme-light .recurring-schedule-icon {
  background: rgba(147, 51, 234, 0.15) !important;
  border: 1px solid rgba(147, 51, 234, 0.4) !important;
  color: #7e22ce !important;
}

/* Các nút hành động bên phải thẻ việc (Ghim, Sửa, Xóa) */
body.theme-light .task-btn {
  color: #475569 !important;
}

body.theme-light .task-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .task-btn.pin-btn.pinned {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.14) !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

body.theme-light .task-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
}

/* 8. Banner Quảng Cáo trong Light Mode */
body.theme-light .zen-ad-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body.theme-light .zen-ad-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

body.theme-light .zen-ad-badge {
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

body.theme-light .zen-ad-tag {
  color: #475569;
  font-weight: 700;
}

body.theme-light .ad-placeholder-box {
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
}

body.theme-light .ad-placeholder-box:hover {
  border-color: #4f46e5;
  background: #ffffff;
}

body.theme-light .ad-placeholder-box.vertical .ad-ph-icon {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
}

body.theme-light .ad-placeholder-box.horizontal .ad-ph-icon {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

body.theme-light .ad-ph-title {
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ad-ph-size {
  color: #0284c7;
  font-weight: 700;
}

body.theme-light .ad-ph-note {
  color: #475569;
  font-weight: 500;
}

/* 9. Modal Customizer & Account Box */
body.theme-light .modal-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
}

body.theme-light #theme-modal .modal-container {
  width: 960px !important;
  max-width: 96vw !important;
  max-height: 92vh !important;
}

body.theme-light .modal-title {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .modal-tabs {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 6px 12px !important;
  gap: 6px !important;
  display: flex !important;
}

body.theme-light .modal-tab-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  color: #475569 !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  white-space: nowrap !important;
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}

body.theme-light .modal-tab-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .modal-tab-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

/* Sound Presets & Custom Sound Upload in Light Mode */
body.theme-light .sound-presets-intro {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

body.theme-light .custom-sound-upload-card {
  background: #f5f3ff !important;
  border: 2px dashed #a5b4fc !important;
}

body.theme-light .custom-sound-upload-card:hover,
body.theme-light .custom-sound-upload-card.dragover {
  background: #ede9fe !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15) !important;
}

body.theme-light .sound-upload-icon {
  color: #6366f1 !important;
}

body.theme-light .custom-sound-upload-title {
  color: #3730a3 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

body.theme-light .custom-sound-upload-sub {
  color: #6b7280 !important;
  font-size: 12px !important;
}

body.theme-light .sound-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  border-radius: 11px !important;
}

body.theme-light .sound-card:hover {
  background: #f8fafc !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.14) !important;
  transform: translateY(-2px) !important;
}

body.theme-light .sound-card.active {
  background: #f0f9ff !important;
  border: 2px solid #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18), 0 6px 18px rgba(2, 132, 199, 0.12) !important;
}

body.theme-light .sound-card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

body.theme-light .sound-card.active .sound-card-title {
  color: #0369a1 !important;
}

body.theme-light .sound-card-desc {
  color: #64748b !important;
  font-weight: 450 !important;
  font-size: 12px !important;
}

body.theme-light .sound-card.active .sound-card-desc {
  color: #0c4a6e !important;
}

body.theme-light .sound-status-tag {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.theme-light .sound-status-tag.is-selected {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

body.theme-light .sound-card-hint {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
}

body.theme-light .btn-preview-sound {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  border-radius: 7px !important;
}

body.theme-light .btn-preview-sound:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

body.theme-light .btn-preview-sound.is-playing {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
}

body.theme-light .btn-preview-sound.is-playing:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

body.theme-light .sound-card.custom-card {
  background: #f5f3ff !important;
  border: 1px solid #c7d2fe !important;
}

body.theme-light .sound-card.custom-card.active {
  background: #ede9fe !important;
  border: 2px solid #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

body.theme-light .sound-card.custom-card .sound-card-title {
  color: #3730a3 !important;
}

body.theme-light .sound-card.custom-card .sound-card-desc {
  color: #4338ca !important;
}

body.theme-light .btn-delete-sound {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
  border-radius: 6px !important;
}

body.theme-light .btn-delete-sound:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

body.theme-light #account-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.theme-light #account-name {
  color: #0f172a;
  font-weight: 700;
}

body.theme-light #logout-btn {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 600;
}

body.theme-light #logout-btn:hover {
  background: #fee2e2;
}

/* ==========================================================================
   Snooze Modal (Bảng hẹn nhắc lại / Báo lại sau) - Light Theme
   ========================================================================== */
body.theme-light .snooze-modal-container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}

body.theme-light .snooze-bell-badge {
  background: linear-gradient(135deg, #fef3c7, #fed7aa) !important;
  border: 1px solid #fcd34d !important;
  color: #d97706 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

body.theme-light .snooze-header-subtitle {
  color: #64748b !important;
}

body.theme-light .snooze-target-task {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .snooze-task-tag {
  color: #2563eb !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
}

body.theme-light .snooze-task-name {
  color: #0f172a !important;
}

body.theme-light .snooze-section-label {
  color: #475569 !important;
}

body.theme-light .snooze-chip {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .snooze-chip .chip-duration {
  color: #1e293b !important;
}

body.theme-light .snooze-chip .chip-time {
  color: #64748b !important;
}

body.theme-light .snooze-chip:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .snooze-chip.active {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-2px);
}

body.theme-light .snooze-chip.active .chip-duration {
  color: #92400e !important;
  font-weight: 800 !important;
}

body.theme-light .snooze-chip.active .chip-time {
  color: #b45309 !important;
  font-weight: 700 !important;
}

body.theme-light .chip-badge {
  background: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35) !important;
}

body.theme-light .snooze-custom-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .snooze-number-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .snooze-number-input:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
}

body.theme-light .snooze-unit-toggle {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
}

body.theme-light .snooze-unit-btn {
  color: #475569 !important;
}

body.theme-light .snooze-unit-btn:hover {
  color: #0f172a !important;
}

body.theme-light .snooze-unit-btn.active {
  background: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.25) !important;
}

body.theme-light .snooze-delta-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .snooze-delta-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body.theme-light .snooze-preview-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 1.5px solid #fde68a !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12) !important;
}

body.theme-light .snooze-preview-card .preview-card-title {
  color: #78350f !important;
  font-weight: 600 !important;
}

body.theme-light .snooze-preview-card .preview-card-time {
  color: #92400e !important;
  text-shadow: none !important;
}

body.theme-light .snooze-preview-card .preview-card-hint {
  color: #a16207 !important;
}

body.theme-light .btn-cancel-existing-snooze {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

body.theme-light .btn-cancel-existing-snooze:hover {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
  color: #b91c1c !important;
}

/* Nút "Báo lại sau" trên Task Card & Active Snooze trong Light Mode */
body.theme-light .btn-snooze-task {
  background: #fffbeb !important;
  border: 1.5px solid #f59e0b !important;
  color: #92400e !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15) !important;
}

body.theme-light .btn-snooze-task svg {
  stroke: #92400e !important;
}

body.theme-light .btn-snooze-task:hover {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #78350f !important;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.28) !important;
  transform: translateY(-1px);
}

body.theme-light .btn-snooze-task:hover svg {
  stroke: #78350f !important;
}

body.theme-light .btn-snooze-task.is-active-snooze {
  background: #faf5ff !important;
  border: 1.5px solid #a855f7 !important;
  color: #6b21a8 !important;
  font-weight: 700 !important;
}

body.theme-light .btn-snooze-task.is-active-snooze svg {
  stroke: #6b21a8 !important;
}

body.theme-light .btn-snooze-task.is-active-snooze:hover {
  background: #f3e8ff !important;
  border-color: #9333ea !important;
  color: #581c87 !important;
}

body.theme-light .btn-snooze-task.is-active-snooze:hover svg {
  stroke: #581c87 !important;
}

/* Header Navigation Menu in Light Mode */
body.theme-light .header-nav-menu {
  border-left-color: #cbd5e1 !important;
}

body.theme-light .header-nav-item {
  color: #475569 !important;
  font-weight: 600 !important;
}

body.theme-light .header-nav-item:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

body.theme-light .header-nav-item.nav-item-premium {
  color: #b45309 !important;
}

body.theme-light .header-nav-item.nav-item-premium:hover {
  color: #78350f !important;
  background: #fef3c7 !important;
  border-color: #fcd34d !important;
}

/* Category Management in Light Mode */
body.theme-light .add-cat-row-btn {
  border-color: rgba(0, 0, 0, 0.15) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  color: #475569 !important;
}
body.theme-light .add-cat-row-btn:hover {
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: #3730a3 !important;
}
/* Manage Categories Modal - Light Theme Balanced Colors */
body.theme-light .category-modal-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18) !important;
}

body.theme-light .category-modal-container .modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

body.theme-light .category-modal-container .modal-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .manage-cat-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
}

body.theme-light .manage-cat-section-title {
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
}

/* Ô chọn/nhập icon thêm danh mục */
body.theme-light .manage-cat-input-icon,
body.theme-light #manage-new-cat-icon {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

body.theme-light .manage-cat-input-icon:hover,
body.theme-light #manage-new-cat-icon:hover {
  border-color: #818cf8 !important;
  background: #f8fafc !important;
}

body.theme-light .manage-cat-input-icon:focus,
body.theme-light #manage-new-cat-icon:focus {
  border-color: #6366f1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Ô nhập tên danh mục */
body.theme-light .manage-cat-input-name,
body.theme-light #manage-new-cat-name {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.2s ease !important;
}

body.theme-light .manage-cat-input-name::placeholder,
body.theme-light #manage-new-cat-name::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

body.theme-light .manage-cat-input-name:hover,
body.theme-light #manage-new-cat-name:hover {
  border-color: #94a3b8 !important;
}

body.theme-light .manage-cat-input-name:focus,
body.theme-light #manage-new-cat-name:focus {
  border-color: #6366f1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Nút Thêm danh mục */
body.theme-light #manage-add-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
  transition: all 0.2s ease !important;
}

body.theme-light #manage-add-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
  transform: translateY(-1px);
}

/* Khung lưới chọn icon emoji */
body.theme-light .cat-emoji-picker {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  gap: 6px !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

/* Nút emoji nhanh */
body.theme-light .cat-emoji-btn {
  height: 34px !important;
  font-size: 17px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

body.theme-light .cat-emoji-btn:hover {
  background: #eef2ff !important;
  border-color: #a5b4fc !important;
  transform: translateY(-1px) scale(1.12) !important;
}

body.theme-light .cat-emoji-btn.active {
  background: #ede9fe !important;
  border: 1.5px solid #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25) !important;
}

/* Badge số lượng danh mục */
body.theme-light .manage-cat-count-badge,
body.theme-light #manage-cat-count-badge {
  background: #e2e8f0 !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
}

/* Thẻ danh mục trong danh sách */
body.theme-light .manage-cat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

body.theme-light .manage-cat-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

body.theme-light .manage-cat-card-name {
  color: #0f172a !important;
  font-weight: 600 !important;
}

body.theme-light .manage-cat-task-count {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .manage-cat-card-tag.system {
  background: #ede9fe !important;
  color: #4f46e5 !important;
  border: 1px solid #c7d2fe !important;
}

/* Khi chỉnh sửa inline một danh mục */
body.theme-light .manage-cat-card.is-editing {
  background: #f8fafc !important;
  border: 1.5px solid #818cf8 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12) !important;
}

body.theme-light .manage-cat-edit-icon-input {
  background: #ffffff !important;
  border: 1.5px solid #6366f1 !important;
  color: #0f172a !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
}

body.theme-light .manage-cat-edit-input {
  background: #ffffff !important;
  border: 1.5px solid #6366f1 !important;
  color: #0f172a !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
}

body.theme-light .manage-cat-edit-input::placeholder {
  color: #94a3b8 !important;
}

/* Các ô input chung trong light theme */
body.theme-light .edit-task-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .edit-task-input::placeholder {
  color: #94a3b8 !important;
}

