:root {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-hover: #16161f;
    --bg-input: #0e0e15;
    --border: #1e1e2a;
    --border-hover: #2a2a3a;
    --accent: #f97316;
    --accent-dim: rgba(249, 115, 22, 0.12);
    --accent-glow: rgba(249, 115, 22, 0.25);
    --text: #e4e4e7;
    --text-dim: #71717a;
    --text-muted: #52525b;
    --red: #ef4444;
    --yellow: #eab308;
    --green: #22c55e;
    --radius: 10px;
    --radius-lg: 14px;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(at 50% 0%, rgba(249, 115, 22, 0.15) 0px, transparent 50%),
        linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0)),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(249, 115, 22, 0.03) 10px, rgba(249, 115, 22, 0.03) 11px);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ===== HEADER ===== */
.main-header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.main-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-header h1 i {
    color: var(--accent);
    font-size: 1rem;
}

nav {
    display: flex;
    gap: 0.25rem;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

nav a:hover {
    color: var(--text);
    background: var(--bg-hover);
}

nav a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ===== PLUS BADGE (Header) ===== */
.header-plus-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: plusGlow 3s ease-in-out infinite;
}

.header-plus-badge:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.35);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.header-plus-badge i {
    font-size: 0.7rem;
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes plusGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.1);
    }

    50% {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
    }
}

@keyframes crownFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== NOTIFICATIONS ===== */
.notifications {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}

.notification-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease-out;
}

.notification-item i {
    color: var(--yellow);
    font-size: 1rem;
}

.notification-item span {
    flex: 1;
}

.notification-item.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.notification-item.clickable:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.btn-outline {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* ===== WEEK NAVIGATION ===== */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.current-week h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* ===== WEEK STATS BAR ===== */
.week-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.35rem;
}

.week-stat {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.week-stat i {
    font-size: 0.65rem;
    color: var(--accent);
}

.week-percent {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* ===== PLANNER TOOLBAR ===== */
.planner-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.view-switcher {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
    gap: 2px;
}

.view-btn {
    padding: 0.4rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.view-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.view-btn.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.planner-view {
    animation: fadeView 0.3s ease;
}

@keyframes fadeView {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   VIEW 1: GRID (Compact bird's-eye view)
   ================================================ */
.grid-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.grid-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem;
    min-height: 160px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.grid-day:hover {
    border-color: var(--border-hover);
}

.grid-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.grid-day.holiday {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.15);
}

.grid-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.grid-day-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.grid-day-date {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.grid-day-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    background: var(--bg-hover);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.grid-day-count.done {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.grid-holiday-badge {
    font-size: 0.65rem;
    color: var(--red);
    background: rgba(239, 68, 68, 0.08);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.grid-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.grid-task {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.7rem;
}

.grid-task:hover {
    background: var(--bg-hover);
}

.grid-task.done {
    opacity: 0.5;
}

.grid-task.done .grid-task-title {
    text-decoration: line-through;
}

.grid-task-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cat-color);
    flex-shrink: 0;
}

.grid-task-title {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.grid-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px dashed var(--border);
    border-radius: 6px;
    margin-top: 0.3rem;
    transition: var(--transition);
    min-height: 50px;
}

.grid-empty:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

@media (max-width: 900px) {
    .grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* ================================================
   VIEW 2: BOARD (Kanban-style columns - default)
   ================================================ */
.board-columns {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    align-items: start;
}

.board-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition: var(--transition);
    overflow: hidden;
}

.board-col:hover {
    border-color: var(--border-hover);
}

.board-col.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.board-col.holiday {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.15);
}

.board-col-head {
    padding: 0.75rem 0.75rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

.board-col-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.board-day-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.board-day-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.board-col-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.board-progress {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.board-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.board-count {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
}

.board-holiday {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.06);
    font-size: 0.75rem;
    color: var(--red);
}

.board-holiday span {
    flex: 1;
}

.board-holiday-remove {
    background: transparent;
    border: none;
    color: var(--red);
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.7rem;
}

.board-holiday-remove:hover {
    opacity: 1;
}

.board-tasks {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.board-task {
    background: var(--bg-hover);
    border-radius: var(--radius);
    padding: 0.65rem;
    border-left: 3px solid var(--cat-color);
    transition: var(--transition);
}

.board-task.has-custom-color {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    /* Ensure text is readable on custom colors */
}

.board-task.has-custom-color h4 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.board-task.has-custom-color .board-task-desc {
    color: rgba(255, 255, 255, 0.85);
}

.board-task.has-custom-color .board-task-check {
    color: rgba(255, 255, 255, 0.7);
}

.board-task.has-custom-color .board-task-check:hover {
    color: #fff;
}

/* Force tag backgrounds to be visible/darker on custom colored cards */
.board-task.has-custom-color .cat-tag {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #fff !important;
}

.board-task.has-custom-color .time-tag {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #fff !important;
}

.board-task.has-custom-color .priority-tag {
    background: rgba(0, 0, 0, 0.25) !important;
    text-shadow: none;
}

.board-task.has-custom-color .priority-tag.p-high {
    color: #fca5a5 !important;
}

.board-task.has-custom-color .priority-tag.p-medium {
    color: #fcd34d !important;
}

.board-task.has-custom-color .priority-tag.p-low {
    color: #86efac !important;
}

.board-task:hover {
    background: rgba(255, 255, 255, 0.04);
}

.board-task.completed {
    opacity: 0.6;
}

.board-task.completed h4 {
    text-decoration: line-through;
    color: var(--green);
}

.board-task.priority-high {
    border-left-color: var(--red);
}

.board-task-top {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.board-task-check {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 1px;
    transition: var(--transition);
    flex-shrink: 0;
}

.board-task-check:hover {
    color: var(--accent);
}

.board-task.completed .board-task-check {
    color: var(--green);
}

.board-task-top h4 {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.board-task-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    padding-left: 1.25rem;
}

.board-task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1.25rem;
}

.board-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.board-tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 500;
}

.cat-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.cat-tag i {
    margin-right: 2px;
    font-size: 0.55rem;
}

.time-tag {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.time-tag i {
    margin-right: 2px;
}

.priority-tag {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.priority-tag.p-high {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
}

.priority-tag.p-medium {
    background: rgba(234, 179, 8, 0.12);
    color: var(--yellow);
}

.priority-tag.p-low {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
}

.board-task-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: var(--transition);
}

.board-task:hover .board-task-actions {
    opacity: 1;
}

.board-task-actions button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    transition: var(--transition);
}

.board-task-actions button:hover {
    color: var(--text);
    background: var(--bg-card);
}

.board-add-btn {
    margin: 0.4rem 0.5rem 0.5rem;
    padding: 0.45rem;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.board-add-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

@media (max-width: 1100px) {
    .board-columns {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* ================================================
   VIEW 3: LIST (Full-width detailed timeline)
   ================================================ */
.view-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.list-day:hover {
    border-color: var(--border-hover);
}

.list-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.list-day.holiday {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.12);
}

.list-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.list-day-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.list-date-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-date-badge.active {
    background: var(--accent);
    border-color: var(--accent);
}

.list-date-badge.active .list-date-num,
.list-date-badge.active .list-date-month {
    color: white;
}

.list-date-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.list-date-month {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.list-day-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.list-day-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-day-meta i {
    font-size: 0.65rem;
}

.list-sep {
    color: var(--border);
}

.list-day-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
}

.list-progress-ring {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-progress-ring svg {
    width: 42px;
    height: 42px;
    transform: rotate(-90deg);
}

.list-progress-ring circle {
    fill: transparent;
    stroke-width: 3;
    stroke-linecap: round;
    cx: 18;
    cy: 18;
    r: 15.915;
    stroke-dasharray: 100;
}

.list-progress-ring circle:first-child {
    stroke: var(--border);
}

.list-progress-ring circle:last-child {
    stroke: var(--accent);
    stroke-dashoffset: calc(100 - var(--pct));
    transition: stroke-dashoffset 0.6s ease;
}

.list-progress-ring span {
    position: absolute;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text);
}

.list-holiday {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: rgba(239, 68, 68, 0.06);
    font-size: 0.8rem;
    color: var(--red);
}

.list-holiday button {
    background: transparent;
    border: none;
    color: var(--red);
    cursor: pointer;
    margin-left: auto;
    opacity: 0.5;
    font-size: 0.75rem;
}

.list-holiday button:hover {
    opacity: 1;
}

.list-tasks {
    padding: 0.5rem 0;
}

.list-task {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(30, 30, 42, 0.5);
}

.list-task:last-child {
    border-bottom: none;
}

.list-task:hover {
    background: var(--bg-hover);
}

.list-task.completed {
    opacity: 0.55;
}

.list-task.completed h4 {
    text-decoration: line-through;
    color: var(--green);
}

.list-task-check {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin-top: 2px;
    transition: var(--transition);
    flex-shrink: 0;
}

.list-task-check:hover {
    color: var(--accent);
}

.list-task.completed .list-task-check {
    color: var(--green);
}

.list-task-body {
    flex: 1;
    min-width: 0;
}

.list-task-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.list-task-main h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

.list-task-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.lt-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--tag-color, var(--accent));
}

.lt-tag i {
    font-size: 0.6rem;
}

.lt-priority.p-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.lt-priority.p-medium {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
}

.lt-priority.p-low {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.lt-time {
    background: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
}

.list-task-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.list-task-notes {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-left: 2px solid var(--accent);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.list-task-notes i {
    color: var(--accent);
    margin-top: 1px;
    font-size: 0.7rem;
}

.list-task-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.list-task:hover .list-task-actions {
    opacity: 1;
}

.list-task-actions button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition);
}

.list-task-actions button:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.list-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.list-empty:hover {
    color: var(--accent);
}

.list-empty i {
    margin-right: 0.3rem;
}

/* ===== FORM ROW ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.modal-lg {
    max-width: 520px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-header h2 i {
    color: var(--accent);
}

.close-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ===== REPORTS PAGE ===== */
.report-entry-section {
    margin-bottom: 1.5rem;
}

.report-entry-section details summary {
    cursor: pointer;
    list-style: none;
}

.report-entry-section details summary::-webkit-details-marker {
    display: none;
}

.report-form-container {
    margin-top: 1rem;
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.form-header h2 i {
    color: var(--accent);
}

.form-header p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.modern-form .form-group label i {
    margin-right: 0.25rem;
    color: var(--accent);
}

.view-filters {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.filter-btn.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(99, 102, 241, 0.3);
}

.page-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.page-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.page-title p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.date-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.date-circle .day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.date-circle .month {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.date-info h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.date-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-report {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    border-left: 3px solid var(--accent);
}

.timeline-report:hover {
    border-color: var(--border-hover);
    border-left-color: var(--accent);
}

.report-header-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.report-header-timeline h4 {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}

.report-time-timeline {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.report-content-timeline {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.empty-state p {
    color: var(--text-dim);
}

/* ===== DASHBOARD ===== */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.welcome-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.welcome-text p {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.datetime-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.current-datetime {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-hover);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
}

.current-datetime i {
    color: var(--accent);
}

.current-datetime .separator {
    color: var(--text-muted);
}

#currentTime {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--accent);
    font-weight: 600;
}

.fullscreen-clock-btn {
    padding: 0.4rem 0.75rem;
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fullscreen-clock-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.stat-info p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.progress-ring-mini {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-mini svg {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.progress-ring-mini circle {
    fill: transparent;
    stroke-width: 4;
    stroke-linecap: round;
}

.progress-ring-mini circle:first-child {
    stroke: var(--border);
}

.progress-ring-mini circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: 106;
    stroke-dashoffset: calc(106 - (106 * var(--percent)) / 100);
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-mini span {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
    width: 100%;
    text-align: center;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--border-hover);
}

.action-card .action-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.action-card.primary .action-icon {
    background: var(--accent-dim);
    color: var(--accent);
}

.action-card.secondary .action-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.action-card .action-text h3 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.action-card .action-text p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.action-card .arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.8rem;
}

.action-card:hover .arrow {
    color: var(--text-dim);
    transform: translateX(3px);
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.section-header h3 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--accent);
}

.btn-text {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.btn-text:hover {
    opacity: 0.8;
}

/* Mini Reports */
.recent-reports-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-report-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-hover);
    border-radius: var(--radius);
    transition: var(--transition);
}

.mini-report-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mini-report-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.mini-report-date .day {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.mini-report-date .month {
    font-size: 0.55rem;
    text-transform: uppercase;
}

.mini-report-content h4 {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
    font-weight: 500;
}

.mini-report-content .time {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.empty-mini-state {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-mini-state i {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    display: block;
    opacity: 0.5;
}

/* Notification List (Dashboard) */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-notification {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    align-items: flex-start;
    font-size: 0.85rem;
}

.dash-notification.warning {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

.dash-notification.warning i {
    color: var(--red);
}

.dash-notification.info {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

.dash-notification.info i {
    color: var(--accent);
}

.dash-notification.success {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.15);
}

.dash-notification.success i {
    color: var(--green);
}

.dash-notification i {
    font-size: 1rem;
    margin-top: 1px;
}

.notif-content {
    flex: 1;
}

.notif-content strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.notif-content p {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
}

.dash-notification .btn-sm {
    padding: 0.3rem 0.6rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
    white-space: nowrap;
}

.dash-notification .btn-sm:hover {
    background: var(--accent-dim);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent);
}

/* ===== RADIAL MENU ===== */
.radial-menu {
    position: fixed;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.radial-menu.active {
    opacity: 1;
    pointer-events: all;
}

.radial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.radial-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.radial-menu-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    z-index: 10;
    transition: 0.15s ease;
}

.radial-menu-center.cancel-mode {
    border-color: var(--red);
    color: var(--red);
}

.radial-menu-items {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.radial-menu-item {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.radial-menu.active .radial-menu-item {
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radial-menu.active .radial-menu-item:nth-child(1) {
    transition-delay: 0.02s;
}

.radial-menu.active .radial-menu-item:nth-child(2) {
    transition-delay: 0.04s;
}

.radial-menu.active .radial-menu-item:nth-child(3) {
    transition-delay: 0.06s;
}

.radial-menu.active .radial-menu-item:nth-child(4) {
    transition-delay: 0.08s;
}

.radial-menu.active .radial-menu-item:nth-child(5) {
    transition-delay: 0.10s;
}

.radial-menu.active .radial-menu-item:nth-child(6) {
    transition-delay: 0.12s;
}

.radial-menu.active .radial-menu-item:nth-child(7) {
    transition-delay: 0.14s;
}

.radial-menu-item.selected {
    transform: translate(-50%, -50%) scale(1.25) !important;
    box-shadow: 0 0 16px currentColor;
    border-color: white;
    z-index: 5;
    transition: transform 0.05s ease-out, box-shadow 0.05s !important;
    transition-delay: 0s !important;
}

.radial-menu-label {
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.radial-menu-label.visible {
    opacity: 1;
}

.radial-menu.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--border);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== DATE PICKER MODAL ===== */
.date-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.date-picker-modal.active {
    display: flex;
}

.date-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.date-picker-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    animation: modalIn 0.2s ease-out;
    overflow: hidden;
}

.date-picker-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-picker-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-picker-header h3 i {
    color: var(--accent);
}

.date-picker-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-close:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.date-picker-body {
    padding: 1.25rem;
}

.date-picker-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.date-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.date-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.date-hint {
    margin-top: 0.75rem;
    padding: 0.65rem;
    background: var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.date-hint i {
    color: var(--accent);
    margin-top: 1px;
}

.date-picker-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===== DAY ZOOM MODAL ===== */
.day-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.day-zoom-modal.active {
    display: flex;
}

.day-zoom-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.2s ease-out;
}

.day-zoom-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-zoom-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.day-zoom-header h2 i {
    color: var(--accent);
}

.day-zoom-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-zoom-close:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.day-zoom-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    min-height: 200px;
}

.day-zoom-body .no-tasks {
    padding: 2rem;
    font-size: 0.9rem;
}

.day-zoom-body .task-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.day-zoom-body .task-header h4 {
    font-size: 0.95rem;
}

.day-zoom-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

/* ===== FULLSCREEN CLOCK ===== */
.fullscreen-clock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-clock.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.clock-display {
    perspective: 800px;
}

.time-3d {
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    color: var(--text);
    animation: floatClock 4s ease-in-out infinite;
}

@keyframes floatClock {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.date-3d {
    font-size: clamp(1.25rem, 3.5vw, 2.5rem);
    font-weight: 500;
    margin-top: 1.5rem;
    color: var(--text-dim);
}

.day-3d {
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-top: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.exit-fullscreen-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.exit-fullscreen-btn.visible {
    opacity: 1;
    visibility: visible;
}

.exit-fullscreen-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* Settings Panel */
.clock-settings-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.clock-settings-panel.open {
    right: 0;
}

.settings-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.settings-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
}

.settings-header h3 i {
    color: var(--accent);
}

.toggle-settings-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-settings-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.settings-content {
    padding: 1.25rem;
}

.setting-group {
    margin-bottom: 1.75rem;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-size: 0.85rem;
}

.setting-group label i {
    color: var(--accent);
}

.color-options,
.clock-color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-btn,
.clock-color-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 3px;
    background: var(--bg-hover);
}

.color-btn span,
.clock-color-btn span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.color-btn:hover,
.clock-color-btn:hover {
    border-color: var(--border-hover);
}

.color-btn.active,
.clock-color-btn.active {
    border-color: var(--accent);
}

.font-options {
    display: flex;
    gap: 0.5rem;
}

.font-btn {
    flex: 1;
    padding: 0.6rem;
    background: var(--bg-hover);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.font-btn:hover {
    border-color: var(--border-hover);
}

.font-btn.active {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

.toggle-item span {
    font-weight: 500;
    font-size: 0.85rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 11px;
    transition: 0.2s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(18px);
}

.mode-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.mode-btn:hover {
    border-color: var(--border-hover);
}

.mode-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.open-settings-btn {
    position: fixed;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
}

.open-settings-btn.visible {
    opacity: 1;
    visibility: visible;
}

.open-settings-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ===== FIXED DATETIME WIDGET ===== */
.fixed-datetime {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--text-dim);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    transition: var(--transition);
}

.fixed-datetime:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.fixed-datetime .date-part {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fixed-datetime .time-part {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    font-weight: 600;
}

.fixed-datetime i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.fixed-datetime .separator {
    color: var(--border);
}

/* Hide on fullscreen clock */
.fullscreen-clock.active~.fixed-datetime {
    display: none;
}

/* View mode toggle buttons */
.view-mode-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.view-mode-btn {
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-mode-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.view-mode-btn.active {
    color: var(--accent);
    background: var(--accent-dim);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .week-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .quick-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .week-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .datetime-group {
        width: 100%;
        align-items: stretch;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline-date {
        min-width: auto;
    }

    .timeline::before {
        left: 29px;
    }

    .view-filters {
        flex-direction: column;
    }

    .filter-btn {
        justify-content: center;
    }

    .radial-menu {
        width: 240px;
        height: 240px;
    }

    .radial-menu-center {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .radial-menu-item {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .clock-settings-panel {
        width: 100%;
        right: -100%;
    }
}

/* Custom Task Color Text Fixes */
.has-custom-color {
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.has-custom-color h4,
.has-custom-color .grid-task-title,
.has-custom-color .board-task-desc,
.has-custom-color .list-task-desc,
.has-custom-color .list-task-notes {
    color: rgba(255, 255, 255, 0.95) !important;
}

.has-custom-color .board-task-check,
.has-custom-color .list-task-check {
    color: rgba(255, 255, 255, 0.7) !important;
}

.has-custom-color .board-task-check:hover,
.has-custom-color .list-task-check:hover {
    color: white !important;
}

/* Fix tags on colored background */
.has-custom-color .board-tag,
.has-custom-color .lt-tag {
    background: rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.has-custom-color .board-tag i,
.has-custom-color .lt-tag i {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Fix action buttons */
.has-custom-color .board-task-actions button,
.has-custom-color .list-task-actions button {
    color: rgba(255, 255, 255, 0.7) !important;
}

.has-custom-color .board-task-actions button:hover,
.has-custom-color .list-task-actions button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Checkbox when completed on custom color */
.has-custom-color.completed h4 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Priority Borders - Overrides Category Color */
.board-task.priority-low,
.list-task.priority-low {
    border-left-color: #4ade80 !important;
}

/* Light Green */
.board-task.priority-medium,
.list-task.priority-medium {
    border-left-color: #facc15 !important;
}

/* Yellow */
.board-task.priority-high,
.list-task.priority-high {
    border-left-color: #ef4444 !important;
}

/* Red */

/* High Priority Icon */
.high-priority-icon {
    position: absolute;
    top: -8px;
    right: -6px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    border: 2px solid var(--bg-card);
    /* Border matching card bg to make it pop */
}

.has-custom-color .high-priority-icon {
    border-color: transparent;
    /* No border needed on custom bg */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Ensure tasks are relative for absolute positioning */
.board-task,
.list-task {
    position: relative;
    overflow: visible !important;
}

/* overflow visible needed for icon outside bounds */

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    z-index: 1001;
}

.mobile-menu-close:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

#mainNav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 769px) {

    .mobile-menu-btn,
    .mobile-menu-close {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0;
    }

    .header-content {
        padding: 0 1rem;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    #mainNav.active {
        right: 0;
    }

    .mobile-menu-close {
        display: flex;
    }

    #mainNav a {
        display: flex;
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius);
        align-items: center;
        gap: 0.75rem;
    }

    #mainNav a:hover {
        background: var(--bg-hover);
    }

    #mainNav a.active {
        background: var(--accent-dim);
        color: var(--accent);
    }

    /* Adjust page layout for mobile header */
    .container {
        padding: 1rem;
    }
}

/* File Upload Styling - Modernized */
.file-upload-container {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    transition: var(--transition);
    color: var(--text-dim);
    text-align: center;
    cursor: pointer;
    min-height: 120px;
}

.file-upload-input:hover+.file-upload-label,
.file-upload-input:focus+.file-upload-label,
.file-upload-container.drag-over .file-upload-label {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
    color: var(--accent);
}

.file-upload-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.file-upload-input:hover+.file-upload-label .file-upload-icon,
.file-upload-container.drag-over .file-upload-label .file-upload-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.file-upload-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.file-upload-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Selected State */
.file-upload-container.has-file .file-upload-label {
    border-style: solid;
    border-color: var(--green);
    background: rgba(34, 197, 94, 0.05);
}

.file-upload-container.has-file .file-upload-icon {
    color: var(--green);
}

.file-upload-container.has-file .file-upload-text {
    color: var(--green);
}

/* Mobile Responsive - Plus Badge */
@media (max-width: 768px) {
    .header-plus-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        gap: 0.25rem;
    }

    .header-plus-badge i {
        font-size: 0.6rem;
    }

    .header-plus-badge span {
        display: none;
        /* Hide "Plus" text on mobile, only show crown icon */
    }
}