/* ---------- Beyaz Tema ---------- */
body[data-theme="white"] {
    --sidebar-bg: #f9f9f9;
    --sidebar-border: rgba(0, 0, 0, 0.08);
    --sidebar-text: rgba(0, 0, 0, 0.65);
    --sidebar-text-hover: #111111;
    --sidebar-active-bg: rgba(0, 0, 0, 0.05);
    --sidebar-active-text: #111111;
    --sidebar-active-border: var(--accent);
    --body-bg: #ffffff;
    --text-primary: #111111;
    --text-secondary: rgba(0, 0, 0, 0.55);
    --accent: #305cde;
    /* Default blue accent for white theme */
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .sidebar-brand h1 {
    color: #111111;
}

body[data-theme="white"] .focus-time {
    color: #111111;
}

body[data-theme="white"] .focus-task {
    color: rgba(0, 0, 0, 0.8);
}

body[data-theme="white"] .focus-bg {
    stroke: rgba(0, 0, 0, 0.06);
}

body[data-theme="white"] .focus-page-circle .focus-bg {
    stroke: rgba(0, 0, 0, 0.06);
}

body[data-theme="white"] .user-name {
    color: #111111;
}

body[data-theme="white"] .sidebar-toggle {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
}

body[data-theme="white"] .suggestion-card:hover {
    background: rgba(0, 0, 0, 0.02);
}

body[data-theme="white"] .suggestion-content p {
    color: rgba(0, 0, 0, 0.75);
}

body[data-theme="white"] .suggestion-action {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: #111111;
}

body[data-theme="white"] .suggestion-action:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="white"] .suggestion-dismiss {
    color: rgba(0, 0, 0, 0.3);
}

body[data-theme="white"] .suggestion-dismiss:hover {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="white"] .focus-mode-selector {
    background: rgba(0, 0, 0, 0.04);
}

body[data-theme="white"] .mode-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-theme="white"] .focus-control-btn.play {
    background: #111111;
    color: #ffffff;
}

body[data-theme="white"] .focus-control-btn.play:hover {
    background: #333333;
}

body[data-theme="white"] .focus-control-btn.stop {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
}

body[data-theme="white"] .focus-control-btn.stop:hover {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme="white"] .modal-content,
body[data-theme="white"] .task-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .form-input,
body[data-theme="white"] .form-textarea,
body[data-theme="white"] .form-select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
}

body[data-theme="white"] .form-input:focus,
body[data-theme="white"] .form-textarea:focus,
body[data-theme="white"] .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(48, 92, 222, 0.1);
    /* blue accent shadow */
}

body[data-theme="white"] .btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .btn-cancel:hover {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme="white"] .agenda-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .agenda-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .custom-select-trigger {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
}

body[data-theme="white"] .custom-select-dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .custom-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .todo-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .todo-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="white"] .todo-checkbox {
    border-color: rgba(0, 0, 0, 0.3);
}

body[data-theme="white"] .habit-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .habit-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="white"] .habit-day {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
}

body[data-theme="white"] .habit-day.checked,
body[data-theme="white"] .habit-check-btn.checked {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

body[data-theme="white"] .habit-day.missed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

body[data-theme="white"] .ai-chat-messages {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="white"] .msg-ai .msg-bubble {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
}

body[data-theme="white"] .msg-user .msg-bubble {
    background: var(--accent);
    color: #ffffff;
}

/* ========== Tasks Page White Theme Overrides ========== */
body[data-theme="white"] .tasks-filter-tabs {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .tab-btn.active .tab-count {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme="white"] .tab-btn .tab-count {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .btn-add-task {
    background: var(--accent);
    color: #ffffff;
}

body[data-theme="white"] .btn-add-task:hover {
    background: #254bbf;
    /* darker accent */
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.2);
}

body[data-theme="white"] .tasks-empty svg {
    stroke: rgba(0, 0, 0, 0.15);
}

body[data-theme="white"] .tasks-empty span {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="white"] .task-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

body[data-theme="white"] .task-checkbox {
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="white"] .task-checkbox:hover {
    background: rgba(48, 92, 222, 0.1);
    border-color: var(--accent);
}

body[data-theme="white"] .task-due {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="white"] .task-age {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="white"] .task-chevron {
    stroke: rgba(0, 0, 0, 0.3);
}

body[data-theme="white"] .task-detail-panel {
    background: rgba(0, 0, 0, 0.015);
}

body[data-theme="white"] .task-description {
    color: rgba(0, 0, 0, 0.65);
}

body[data-theme="white"] .subtask-checkbox {
    border-color: rgba(0, 0, 0, 0.15);
}

body[data-theme="white"] .subtask-text {
    color: rgba(0, 0, 0, 0.75);
}

body[data-theme="white"] .task-action-btn {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    color: rgba(0, 0, 0, 0.65);
}

body[data-theme="white"] .task-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
}

/* ========== Agenda Page White Theme Overrides ========== */
body[data-theme="white"] .agenda-date-nav {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .date-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .timeline-hour-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .timeline-grid-cell {
    border-left-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .timeline-grid-cell:hover {
    background: rgba(0, 0, 0, 0.02);
}

body[data-theme="white"] .agenda-event-card {
    background: rgba(48, 92, 222, 0.1);
    border-color: rgba(48, 92, 222, 0.3);
}

body[data-theme="white"] .agenda-event-title {
    color: #1e3a8a;
}

body[data-theme="white"] .agenda-event-time {
    color: rgba(30, 58, 138, 0.8);
}

body[data-theme="white"] .mini-cal-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .mini-cal-day:hover:not(.empty) {
    background: rgba(0, 0, 0, 0.06);
}

body[data-theme="white"] .mini-cal-day.other-month {
    color: rgba(0, 0, 0, 0.25);
}

body[data-theme="white"] .agenda-task-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="white"] .custom-select-search input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #111111;
}

body[data-theme="white"] .custom-option {
    color: rgba(0, 0, 0, 0.7);
}

body[data-theme="white"] .custom-option.selected {
    background: rgba(48, 92, 222, 0.1);
    color: var(--accent);
}

body[data-theme="white"] .custom-select-trigger svg {
    stroke: rgba(0, 0, 0, 0.4);
}

body[data-theme="white"] .custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

/* ========== SweetAlert2 White Theme Overrides ========== */
body[data-theme="white"] .swal2-popup {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

body[data-theme="white"] .swal2-cancel {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-secondary) !important;
}

body[data-theme="white"] .swal2-cancel:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-primary) !important;
}

body[data-theme="white"] .btn-add-agenda {
    background: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.2) !important;
}

body[data-theme="white"] .btn-add-agenda:hover {
    background: #254bbf !important;
    box-shadow: 0 6px 16px rgba(48, 92, 222, 0.3) !important;
}

body[data-theme="white"] .btn-add-tag {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.2) !important;
}

body[data-theme="white"] .btn-add-tag:hover {
    background: #254bbf !important;
    box-shadow: 0 6px 16px rgba(48, 92, 222, 0.3) !important;
}

/* ========== Notes Page White Theme Overrides ========== */
body[data-theme="white"] .notes-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

body[data-theme="white"] .notes-empty-state svg {
    stroke: rgba(0, 0, 0, 0.12);
}

body[data-theme="white"] .notes-empty-state span {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="white"] .tree-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

body[data-theme="white"] .tree-item.active {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .tree-item.search-match {
    background: rgba(48, 92, 222, 0.06);
}

body[data-theme="white"] .tree-chevron {
    stroke: rgba(0, 0, 0, 0.35);
}

body[data-theme="white"] .tree-item.drag-over {
    background: rgba(48, 92, 222, 0.08);
}

body[data-theme="white"] .toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

body[data-theme="white"] .notes-content code {
    background: rgba(0, 0, 0, 0.06);
    color: #9333ea;
}

body[data-theme="white"] .notes-content pre {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .notes-content pre code {
    color: #1e293b;
}

body[data-theme="white"] .note-task {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .note-task:hover {
    background: rgba(0, 0, 0, 0.04);
}

body[data-theme="white"] .note-task-checkbox {
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="white"] .notes-context-menu {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body[data-theme="white"] .context-menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}