body {
    background-color: #f8f9fa;
}

.stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-card-primary {
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.stat-card-warning {
    background: linear-gradient(180deg, #ffffff 0%, #fff8ea 100%);
}

.stat-card-danger {
    background: linear-gradient(180deg, #ffffff 0%, #fff0f0 100%);
}

.stat-card-success {
    background: linear-gradient(180deg, #ffffff 0%, #effaf3 100%);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.soft-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


.dashboard-section-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.dashboard-section-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    opacity: .92;
}

.dashboard-section-focus {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-section-focus::before {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.dashboard-section-plan {
    background: linear-gradient(180deg, #ffffff 0%, #f5fcf8 100%);
}

.dashboard-section-plan::before {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.dashboard-section-notes {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
}

.dashboard-section-notes::before {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

.dashboard-section-timeline {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.dashboard-section-timeline::before {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
}

.section-card-header-focus {
    background: linear-gradient(180deg, rgba(239, 246, 255, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(37, 99, 235, 0.10) !important;
}

.section-card-header-plan {
    background: linear-gradient(180deg, rgba(236, 253, 245, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(5, 150, 105, 0.10) !important;
}

.section-card-header-notes {
    background: linear-gradient(180deg, rgba(255, 251, 235, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(217, 119, 6, 0.10) !important;
}

.section-card-header-timeline {
    background: linear-gradient(180deg, rgba(245, 243, 255, .98) 0%, rgba(255,255,255,.98) 100%);
    border-bottom-color: rgba(124, 58, 237, 0.10) !important;
}


.focus-task {
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1rem;
    background-color: #fff;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0;
}

.task-table tbody tr {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.task-row-overdue td:first-child,
.task-row-due-today td:first-child,
.task-row-active td:first-child,
.task-row-completed td:first-child {
    border-left: 4px solid transparent;
}

.task-row-overdue {
    background: rgba(220, 53, 69, 0.06);
}

.task-row-overdue td:first-child {
    border-left-color: #dc3545;
}

.task-row-due-today {
    background: rgba(255, 193, 7, 0.10);
}

.task-row-due-today td:first-child {
    border-left-color: #ffc107;
}

.task-row-active {
    background: rgba(13, 110, 253, 0.05);
}

.task-row-active td:first-child {
    border-left-color: #0d6efd;
}

.task-row-completed {
    background: rgba(25, 135, 84, 0.05);
}

.task-row-completed td:first-child {
    border-left-color: #198754;
}

.task-state-default {
    border-left: 4px solid rgba(0, 0, 0, 0.08);
}

.task-state-active {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.task-state-due-today {
    border-left: 4px solid #ffc107;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.task-state-overdue {
    border-left: 4px solid #dc3545;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.task-state-completed {
    border-left: 4px solid #198754;
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}

.task-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.category-chip,
.recurrence-chip,
.priority-pill,
.status-pill,
.kanban-metric {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.category-chip {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.08);
    color: #495057;
}

.recurrence-chip {
    background: #f4efff;
    border: 1px solid rgba(111, 66, 193, .12);
    color: #6f42c1;
}

.priority-pill-low {
    background: #eef6ff;
    color: #0d6efd;
}

.priority-pill-medium {
    background: #fff4e5;
    color: #b26a00;
}

.priority-pill-high {
    background: #ffe7ea;
    color: #c1121f;
}

.status-pill {
    background: rgba(0,0,0,.04);
    color: #495057;
}

.task-date-line {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    margin-top: .6rem;
}

.completed-info {
    margin-top: .7rem;
    display: grid;
    gap: .3rem;
}

.completed-line {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
}

.kanban-board {
    align-items: stretch;
}

.kanban-column {
    min-height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.kanban-column.kanban-over {
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.12);
    transform: translateY(-2px);
}

.kanban-dropzone {
    min-height: 380px;
}

.kanban-task {
    cursor: grab;
}

.kanban-task.dragging {
    opacity: .55;
    transform: rotate(1deg);
}

.kanban-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 1rem;
    color: #6c757d;
    background: rgba(255,255,255,.6);
}

.kanban-header-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .85rem;
}

.kanban-metric {
    width: 100%;
    justify-content: flex-start;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.06);
    color: #6c757d;
    white-space: normal;
    line-height: 1.25;
    min-height: 2.75rem;
    padding: .55rem .75rem;
}

.kanban-metric.alert {
    background: #fff4f4;
    color: #b42318;
    border-color: rgba(180,35,24,.12);
}

.kanban-metric.today {
    background: #fff8e6;
    color: #a15c00;
    border-color: rgba(255,193,7,.2);
}

.kanban-metric.active {
    background: #eef5ff;
    color: #0d6efd;
    border-color: rgba(13,110,253,.12);
}

.kanban-metric.done {
    background: #eefaf2;
    color: #198754;
    border-color: rgba(25,135,84,.12);
}

.kanban-task-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.kanban-task-top .badge {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    max-width: 8rem;
    flex-shrink: 0;
}

@media (max-width: 1399.98px) {
    .kanban-header-metrics {
        grid-template-columns: 1fr;
    }
}

.nav-pills .nav-link {
    color: #495057;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
}

.nav-pills .nav-link.active {
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.16);
}

.quick-panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

@media (max-width: 991.98px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
}


.completion-detail-row td {
    background: transparent;
}

.completion-detail-panel {
    padding: 1rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(0,0,0,.06);
}

.completion-detail-panel-compact {
    padding: .9rem 1rem;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    background: #fff;
}

.completion-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
    flex-wrap: wrap;
}

.completion-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.completion-detail-grid.compact {
    grid-template-columns: 1fr;
    gap: .85rem;
}

.completion-detail-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: .35rem;
}

.completion-detail-value {
    font-size: .95rem;
    color: #212529;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .completion-detail-grid {
        grid-template-columns: 1fr;
    }
}


.notification-dropdown {
    width: min(420px, 92vw);
}

.notification-item {
    border-left: 4px solid transparent;
}

.notification-item-info {
    border-left-color: #0d6efd;
}

.notification-item-warning {
    border-left-color: #ffc107;
}

.notification-item-danger {
    border-left-color: #dc3545;
}

.notification-page-item {
    transition: transform .18s ease, box-shadow .18s ease;
}

.notification-page-item:hover {
    transform: translateY(-1px);
}

.reminder-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: #e8f1ff;
    color: #1d4ed8;
}

.reminder-list {
    display: grid;
    gap: .9rem;
}

.reminder-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

.reminder-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    color: #1d4ed8;
}

.reminder-card-warning .reminder-icon { background: #fff7e6; color: #b26a00; }
.reminder-card-danger .reminder-icon { background: #fff0f0; color: #c1121f; }

.calendar-legend-stack {
    display: grid;
    gap: .75rem;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #4b5563;
    font-weight: 600;
}

.calendar-legend-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: .35rem;
    border: 1px solid rgba(0,0,0,.08);
}

.swatch-blue { background: #DBEAFE; }
.swatch-yellow { background: #FEF3C7; }
.swatch-red { background: #FEE2E2; }
.swatch-green { background: #DCFCE7; }
.swatch-gray { background: #F3F4F6; }

.calendar-help-list {
    padding-left: 1rem;
    display: grid;
    gap: .75rem;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1rem;
}

.fc .fc-button {
    border-radius: 999px;
    padding: .45rem .8rem;
}

.fc .fc-daygrid-event {
    border-radius: .7rem;
    padding: .2rem .35rem;
}


.calendar-detail-block {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
}

#calendarTaskStatusBadge,
#calendarTaskPriorityBadge,
#calendarTaskCategoryBadge {
    font-weight: 600;
    padding: .45rem .75rem;
    border-radius: 999px;
}

.fc-event {
    cursor: pointer;
}


.notification-dropdown {
    min-width: 22rem;
}

.settings-matrix th,
.settings-matrix td {
    vertical-align: middle;
}

.toast-container .toast {
    min-width: 320px;
    backdrop-filter: blur(6px);
}



.section-card-header {
    position: relative;
    background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,.98) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
    min-width: 0;
}

.section-head-icon,
.section-inline-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(37, 99, 235, 0.12);
    flex: 0 0 auto;
}

.section-head-icon i,
.section-inline-icon i {
    font-size: 1.05rem;
}

.section-head-icon-emerald {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    color: #059669;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(5, 150, 105, 0.12);
}

.section-head-icon-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    color: #d97706;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(217, 119, 6, 0.12);
}

.section-head-icon-violet {
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    color: #7c3aed;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(124, 58, 237, 0.12);
}

.section-head-eyebrow,
.section-inline-eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: #64748b;
    margin-bottom: .25rem;
}

.section-head-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.section-head-subtitle {
    margin-top: .35rem;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 42rem;
}

.section-inline-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.section-inline-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .2rem;
}

.dashboard-days-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.day-glance-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    min-height: 168px;
    overflow: hidden;
}

.day-glance-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
}

.day-glance-card-today {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    border-color: rgba(29, 78, 216, 0.35);
    color: #fff;
    box-shadow: 0 16px 34px rgba(29, 78, 216, 0.22);
}

.day-glance-card-today::before {
    width: 100%;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,.18) 100%);
}

.day-glance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.day-glance-name {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: .18rem;
}

.day-glance-card-today .day-glance-name,
.day-glance-card-today .day-glance-note {
    color: rgba(255,255,255,.78);
}

.day-glance-date {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.day-glance-card-today .day-glance-date {
    color: #fff;
}

.day-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.day-metric-box {
    padding: .65rem .6rem;
    border-radius: .9rem;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(15, 23, 42, 0.05);
    text-align: center;
}

.day-glance-card-today .day-metric-box {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

.day-metric-label {
    display: block;
    font-size: .68rem;
    color: #64748b;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.day-glance-card-today .day-metric-label {
    color: rgba(255,255,255,.72);
}

.day-metric-value {
    font-size: 1.1rem;
    line-height: 1;
}

.day-load-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .68rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .72rem;
    white-space: nowrap;
}

.day-load-pill-empty {
    background: #eef2ff;
    color: #475569;
}

.day-load-pill-planned {
    background: #e0f2fe;
    color: #0369a1;
}

.day-load-pill-busy {
    background: #fff7ed;
    color: #c2410c;
}

.day-load-pill-critical {
    background: #fef2f2;
    color: #b91c1c;
}

.day-glance-note {
    font-size: .78rem;
    color: #64748b;
    margin-top: auto;
    line-height: 1.45;
}

.upcoming-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.upcoming-section-stack {
    display: grid;
    gap: 1.2rem;
}

.upcoming-day-block {
    padding: 1.15rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(15, 23, 42, 0.05);
}

.upcoming-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: .9rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.upcoming-day-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.upcoming-day-subtitle {
    font-size: .86rem;
    color: #64748b;
}

.upcoming-task-list {
    display: grid;
    gap: .85rem;
}

.upcoming-task-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.upcoming-task-main {
    flex: 1 1 auto;
    min-width: 0;
}

.upcoming-task-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

@media (max-width: 1199.98px) {
    .dashboard-days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .section-head,
    .section-inline-head {
        align-items: center;
    }

    .dashboard-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upcoming-section-header,
    .upcoming-day-header,
    .upcoming-task-card,
    .day-glance-header {
        flex-direction: column;
        align-items: stretch;
    }

    .day-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dashboard-days-grid {
        grid-template-columns: 1fr;
    }

    .day-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upcoming-task-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


.day-planner-card {
    overflow: hidden;
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.planner-day-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    padding: 1rem;
    min-height: 182px;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.planner-day-card-today {
    background: linear-gradient(180deg, #16213a 0%, #23365d 100%);
    border-color: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: 0 18px 36px rgba(22, 33, 58, 0.25);
}

.planner-day-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.planner-day-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
}

.planner-day-date {
    font-size: .84rem;
    color: #6c757d;
    margin-top: .2rem;
}

.planner-day-card-today .planner-day-date,
.planner-day-card-today .planner-day-note {
    color: rgba(255,255,255,.72);
}

.planner-today-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffd65a;
    color: #2d2200;
    font-size: .72rem;
    font-weight: 700;
    padding: .35rem .7rem;
}

.planner-day-state {
    display: flex;
}

.planner-state-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.planner-day-card .planner-state-pill.day-load-pill-empty {
    background: #f3f4f6;
    color: #64748b;
}

.planner-day-card .planner-state-pill.day-load-pill-planned {
    background: #e8f1ff;
    color: #1456c1;
}

.planner-day-card .planner-state-pill.day-load-pill-busy {
    background: #fff2db;
    color: #a35f00;
}

.planner-day-card .planner-state-pill.day-load-pill-critical {
    background: #ffe5e8;
    color: #ba1f33;
}

.planner-day-card-today .planner-state-pill {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

.planner-day-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.planner-metric-item {
    border-radius: .95rem;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.06);
    padding: .75rem .6rem;
    text-align: center;
}

.planner-day-card-today .planner-metric-item {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.10);
}

.planner-metric-item strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

.planner-metric-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
    margin-bottom: .35rem;
}

.planner-day-card-today .planner-metric-label {
    color: rgba(255,255,255,.72);
}

.planner-day-note {
    font-size: .82rem;
    color: #64748b;
    margin-top: auto;
}

.planner-task-panel {
    border-top: 1px solid rgba(15,23,42,.07);
    padding-top: 1.25rem;
}

.planner-task-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.upcoming-day-block {
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 1.1rem;
    background: #fff;
    padding: 1rem 1rem .35rem;
}

.upcoming-day-header {
    margin-bottom: .8rem;
}

.upcoming-task-card {
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.06);
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    padding: .95rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.upcoming-task-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

@media (max-width: 1399.98px) {
    .planner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .planner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .planner-grid {
        grid-template-columns: 1fr;
    }

    .planner-task-panel-head,
    .upcoming-task-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.section-card-header-focus .section-head-eyebrow { color: #2563eb; }
.section-card-header-plan .section-head-eyebrow { color: #059669; }
.section-card-header-notes .section-head-eyebrow { color: #b45309; }
.section-card-header-timeline .section-head-eyebrow { color: #7c3aed; }

.section-card-header-focus .btn-outline-secondary,
.section-card-header-plan .btn-outline-primary,
.section-card-header-notes .btn-outline-secondary,
.section-card-header-timeline .btn-outline-secondary {
    background-color: rgba(255,255,255,.78);
}


.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475569;
}

.section-kicker i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: .5rem;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: .82rem;
}

.form-label-subtle {
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: .35rem;
}

.task-date-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

/* Tasks page redesign */
.task-page-shell {
    display: grid;
    gap: 1.5rem;
}

.task-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,248,252,0.98));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.task-hero-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.section-kicker.small {
    font-size: .72rem;
    margin-bottom: .4rem;
}

.section-kicker.small i {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: .45rem;
    font-size: .72rem;
}

.task-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.task-summary-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.task-summary-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.task-summary-icon.primary { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.task-summary-icon.warning { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.task-summary-icon.danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.task-summary-icon.info { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.task-summary-icon.accent { background: rgba(139, 92, 246, 0.14); color: #6d28d9; }
.task-summary-icon.success { background: rgba(34, 197, 94, 0.14); color: #15803d; }

.task-summary-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.task-summary-label {
    margin-top: .15rem;
    color: #64748b;
    font-size: .86rem;
}

.task-filter-panel,
.task-content-card {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.task-panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.input-group-modern .input-group-text {
    background: #f8fafc;
    border-right: 0;
    color: #64748b;
}

.input-group-modern .form-control {
    border-left: 0;
}

.task-filter-checks {
    display: grid;
    gap: .8rem;
}

.task-toggle-check {
    display: flex;
    gap: .8rem;
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.task-toggle-check .form-check-input {
    margin-top: .2rem;
}

.task-toggle-check span {
    display: grid;
    gap: .15rem;
}

.task-toggle-check strong {
    font-size: .92rem;
    color: #0f172a;
}

.task-toggle-check small {
    color: #64748b;
}

.task-view-tabs .nav-link {
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #475569;
    background: #f8fafc;
}

.task-view-tabs .nav-link.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.task-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(255,255,255,0.96));
}

.task-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 1.6rem;
}

.task-empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: .35rem;
    color: #0f172a;
}

.task-empty-state p {
    color: #64748b;
    margin-bottom: 1rem;
}

.task-list-stack {
    display: grid;
    gap: 1rem;
}

.task-list-card {
    padding: 1.2rem 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    position: relative;
}

.task-list-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 1.35rem 0 0 1.35rem;
    background: rgba(148, 163, 184, 0.6);
}

.task-list-card.task-state-active::before { background: #2563eb; }
.task-list-card.task-state-due-today::before { background: #d97706; }
.task-list-card.task-state-overdue::before { background: #dc2626; }
.task-list-card.task-state-completed::before { background: #16a34a; }

.task-list-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.task-list-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.task-list-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: #0f172a;
}

.task-list-description {
    margin: .55rem 0 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.55;
}

.task-list-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: .45rem;
    flex-shrink: 0;
}

.task-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.task-list-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.task-detail-tile {
    padding: .85rem .95rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #f8fafc;
    display: grid;
    gap: .18rem;
}

.task-detail-tile strong {
    color: #0f172a;
    font-size: .94rem;
    line-height: 1.4;
}

.task-detail-label {
    color: #64748b;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.task-detail-tile.primary { background: rgba(37, 99, 235, 0.08); }
.task-detail-tile.warning { background: rgba(245, 158, 11, 0.12); }
.task-detail-tile.danger { background: rgba(239, 68, 68, 0.1); }
.task-detail-tile.success { background: rgba(34, 197, 94, 0.1); }
.task-detail-tile.neutral { background: #f8fafc; }

.task-completion-toggle-row {
    margin-top: .95rem;
}

@media (max-width: 1400px) {
    .task-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .task-page-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .task-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-list-card-head,
    .task-list-title-row {
        flex-direction: column;
    }

    .task-list-actions {
        justify-content: flex-end;
    }

    .task-list-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .task-summary-grid {
        grid-template-columns: 1fr;
    }

    .task-page-hero,
    .task-list-card,
    .task-filter-panel .card-body,
    .task-content-card .card-body {
        padding: 1rem !important;
    }

    .task-list-actions {
        flex-wrap: wrap;
    }
}

/* Kanban refinements */
.kanban-task-top {
    min-width: 0;
}

.kanban-task-top > .flex-grow-1 {
    min-width: 0;
}

.kanban-task .fw-semibold {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    word-break: break-word;
}

.kanban-task-top .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    max-width: 5.75rem;
    min-width: 4.6rem;
    padding: .42rem .65rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.kanban-task .task-meta-row,
.kanban-task .task-date-line {
    min-width: 0;
}

/* Notes redesign */
.notes-page-hero,
.note-form-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.notes-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.notes-summary-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.notes-summary-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notes-summary-icon.primary { background: #eaf2ff; color: #175cd3; }
.notes-summary-icon.warning { background: #fff4df; color: #b26a00; }
.notes-summary-icon.accent { background: #f3ebff; color: #7c3aed; }

.notes-summary-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.notes-summary-label {
    margin-top: .2rem;
    font-size: .88rem;
    color: #667085;
}

.notes-filter-panel,
.notes-content-card,
.note-form-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.notes-card-grid .col-md-6,
.notes-card-grid .col-xxl-4 {
    display: flex;
}

.note-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.note-card-pinned {
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.12);
}

.note-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.note-card-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #101828;
    line-height: 1.35;
}

.note-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.note-pin-chip,
.note-date-chip,
.note-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .42rem .78rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.note-pin-chip {
    background: #fff4df;
    color: #b26a00;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.note-date-chip {
    background: #f8fafc;
    color: #475467;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.note-card-body {
    min-height: 0;
}

.note-card-content {
    margin: 0;
    color: #475467;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.note-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.note-tag-chip {
    background: #eef4ff;
    color: #175cd3;
    border: 1px solid rgba(23, 92, 211, 0.12);
}

.note-tag-chip:hover {
    background: #dfeaff;
    color: #0f4bb8;
}

.note-card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: .35rem;
}

.note-form-textarea {
    min-height: 220px;
    resize: vertical;
}

@media (max-width: 1199.98px) {
    .notes-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .note-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .note-card-actions > * {
        width: 100%;
    }
}


.pagination-shell{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-top:1.25rem;border-top:1px solid rgba(15,23,42,.08);margin-top:1.5rem}.pagination-summary{font-size:.92rem;color:#64748b;font-weight:600}.pagination-modern .page-link{border:none;border-radius:999px;margin:.15rem;padding:.55rem .9rem;min-width:2.5rem;text-align:center;color:#0f172a;background:#f8fafc;box-shadow:inset 0 0 0 1px rgba(148,163,184,.28)}.pagination-modern .page-item.active .page-link{background:#0f172a;color:#fff;box-shadow:none}.pagination-modern .page-item.disabled .page-link{opacity:.45;background:#f8fafc;color:#94a3b8}.pagination-modern .page-link:hover{background:#e2e8f0;color:#0f172a}.pagination-modern{flex-wrap:wrap}


.page-size-chip{display:inline-flex;align-items:center;padding:.55rem .9rem;border-radius:999px;background:#f8fafc;color:#334155;font-size:.9rem;font-weight:600;box-shadow:inset 0 0 0 1px rgba(148,163,184,.22)}
.page-size-chip i{color:#64748b}


.calendar-page {
    display: grid;
    gap: 1.5rem;
}

.calendar-hero {
    padding: 1.5rem;
    background: radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(59,130,246,.08);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.calendar-hero-main {
    min-width: 0;
}

.calendar-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(37,99,235,.08);
    color: #1d4ed8;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .01em;
}

.calendar-hero-title {
    margin: .9rem 0 .35rem;
    font-size: clamp(1.65rem, 2vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
}

.calendar-hero-text {
    margin: 0;
    color: #475569;
    max-width: 52rem;
}

.calendar-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.calendar-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    color: #334155;
    font-weight: 600;
    font-size: .84rem;
}

.calendar-hero-actions {
    display: grid;
    gap: .75rem;
    flex: 0 0 auto;
}

.calendar-shell,
.calendar-side-card {
    border: 1px solid rgba(15,23,42,.06);
    overflow: hidden;
}

.calendar-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(15,23,42,.06);
    background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,.98) 100%);
}

.calendar-shell-body {
    padding: 1rem 1rem 1.15rem;
}

.calendar-inline-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    max-width: 24rem;
}

.calendar-inline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    padding: .4rem .7rem;
    color: #475569;
    font-size: .8rem;
    font-weight: 700;
}

.calendar-sidebar-sticky {
    position: sticky;
    top: 1.25rem;
}

.calendar-side-card {
    padding: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.calendar-side-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1rem;
}

.calendar-side-card-header.compact {
    margin-bottom: .85rem;
}

.calendar-selection-summary {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(37,99,235,.12);
}

.calendar-selection-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: rgba(37,99,235,.1);
    color: #2563eb;
    flex: 0 0 auto;
}

.calendar-selection-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: .2rem;
    font-weight: 800;
}

.calendar-selection-value {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.calendar-quick-form .form-label {
    font-weight: 700;
    color: #334155;
}

.calendar-form-tip {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff9eb 0%, #fffdf6 100%);
    border: 1px solid rgba(245,158,11,.16);
    color: #92400e;
    font-size: .86rem;
}

.calendar-legend-grid {
    display: grid;
    gap: .7rem;
}

.calendar-legend-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
}

.calendar-legend-card strong {
    display: block;
    color: #0f172a;
    font-size: .88rem;
}

.calendar-legend-card small {
    display: block;
    color: #64748b;
}

.calendar-tip-list {
    display: grid;
    gap: .8rem;
}

.calendar-tip-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .75rem;
    align-items: start;
    padding: .85rem .95rem;
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.06);
    background: #fff;
    color: #475569;
}

.calendar-tip-item i {
    color: #2563eb;
    margin-top: .1rem;
}

.fc {
    --fc-border-color: rgba(148,163,184,.18);
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: rgba(248,250,252,.75);
    --fc-list-event-hover-bg-color: #f8fbff;
    --fc-today-bg-color: rgba(37,99,235,.06);
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.1rem;
    gap: .75rem;
    flex-wrap: wrap;
}

.fc .fc-toolbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.fc .fc-button {
    border-radius: 999px;
    padding: .5rem .9rem;
    box-shadow: none !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    background: #fff !important;
    color: #334155 !important;
    text-transform: none;
    font-weight: 700;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: rgba(37,99,235,.18) !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 8.1rem;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.fc .fc-daygrid-day-number {
    padding: .6rem .65rem 0;
}

.fc .fc-day-today {
    border-radius: 1rem;
}

.fc .fc-daygrid-day-events {
    margin: .2rem .35rem .55rem;
}

.fc .fc-daygrid-event {
    border-radius: .85rem;
    padding: .28rem .45rem;
    border-width: 1px;
    box-shadow: 0 6px 14px rgba(15,23,42,.05);
}

.fc .fc-daygrid-event .fc-event-title {
    font-weight: 700;
    font-size: .82rem;
}

.fc .fc-list-event-title a,
.fc .fc-event-main-frame {
    color: inherit;
}

.fc .fc-popover {
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 42px rgba(15,23,42,.12);
}

.fc .fc-popover-header {
    padding: .8rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.fc .fc-day-other {
    background: linear-gradient(180deg, rgba(248,250,252,.85) 0%, rgba(255,255,255,.55) 100%);
}

@media (max-width: 1199.98px) {
    .calendar-hero,
    .calendar-shell-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-inline-legend {
        justify-content: flex-start;
        max-width: none;
    }

    .calendar-sidebar-sticky {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .calendar-hero {
        padding: 1.1rem;
    }

    .calendar-shell-body {
        padding: .75rem;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 6.8rem;
    }

    .calendar-hero-actions {
        width: 100%;
    }

    .calendar-hero-actions .btn {
        width: 100%;
    }
}


/* Tarihte Bugün */
.history-page-shell,
.history-form-shell {
    display: grid;
    gap: 1.5rem;
}

.history-page-hero,
.history-form-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(124, 58, 237, .10);
    background: linear-gradient(135deg, rgba(248, 245, 255, .96), rgba(255, 255, 255, .98));
    box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.history-summary-card {
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.history-summary-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.history-summary-icon.primary { background: rgba(59, 130, 246, .12); color: #2563eb; }
.history-summary-icon.accent { background: rgba(124, 58, 237, .12); color: #7c3aed; }
.history-summary-icon.success { background: rgba(16, 185, 129, .12); color: #059669; }
.history-summary-icon.warning { background: rgba(245, 158, 11, .16); color: #d97706; }

.history-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.history-summary-label {
    margin-top: .2rem;
    font-size: .85rem;
    color: #64748b;
}

.history-filter-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,251,.96) 100%);
}

.history-section-card {
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .05);
}

.history-section-today { background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%); }
.history-section-upcoming { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.history-section-archive { background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%); }

.history-highlight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(255,255,255,.96));
    border: 1px solid rgba(124, 58, 237, .10);
    height: 100%;
}

.history-highlight-date,
.history-archive-datebox {
    min-width: 72px;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    display: grid;
    align-content: center;
    justify-items: center;
    padding: .85rem .6rem;
    box-shadow: inset 0 -8px 18px rgba(124,58,237,.05);
}

.history-highlight-date span,
.history-archive-datebox strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.history-highlight-date small,
.history-archive-datebox span {
    margin-top: .25rem;
    font-size: .8rem;
    color: #64748b;
    text-transform: capitalize;
}

.history-highlight-body,
.history-archive-body {
    display: grid;
    gap: .75rem;
    min-width: 0;
}

.history-card-topline {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.history-type-chip,
.history-years-chip,
.history-next-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.history-type-chip.annual {
    background: rgba(124, 58, 237, .12);
    color: #6d28d9;
}

.history-type-chip.once {
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
}

.history-years-chip {
    background: rgba(16, 185, 129, .12);
    color: #047857;
}

.history-next-chip {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.history-highlight-body h3,
.history-archive-body h3,
.history-upcoming-content h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.history-highlight-body p,
.history-archive-body p,
.history-upcoming-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.history-tag-cloud,
.history-card-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.history-upcoming-list {
    display: grid;
    gap: .85rem;
}

.history-upcoming-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, .10);
    background: rgba(255,255,255,.88);
}

.history-upcoming-daycount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    color: #1d4ed8;
    background: rgba(59, 130, 246, .12);
}

.history-upcoming-meta {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: .84rem;
    margin-top: .35rem;
    margin-bottom: .35rem;
}

.history-archive-grid .history-archive-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, .07);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    width: 100%;
}

.history-empty-state.compact {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.history-form-card {
    border: 1px solid rgba(124, 58, 237, .08);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(251,250,255,.96) 100%);
}

.history-form-textarea {
    min-height: 220px;
    resize: vertical;
}

@media (max-width: 991.98px) {
    .history-page-hero,
    .history-form-hero {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 767.98px) {
    .history-highlight-card,
    .history-archive-grid .history-archive-card,
    .history-upcoming-item {
        grid-template-columns: 1fr;
    }

    .history-highlight-date,
    .history-archive-datebox {
        min-width: 0;
        width: 100%;
    }
}


.notification-dropdown-item {
    display: grid;
    gap: .85rem;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,251,.92) 100%);
}

.notification-dropdown-body {
    min-width: 0;
}

.notification-dropdown-icon {
    color: #64748b;
    font-size: 1.05rem;
    margin-top: .1rem;
}

.notification-dropdown-meta {
    line-height: 1.45;
}

.notification-dropdown-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.notification-dropdown-actions .btn {
    border-radius: 999px;
}

.history-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-section-header-split {
    align-items: flex-end;
}

.history-head-icon.today {
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    color: #7c3aed;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(124,58,237,.16);
}

.history-head-icon.upcoming {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(37,99,235,.14);
}

.history-head-icon.archive {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    color: #d97706;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(217,119,6,.12);
}

.history-count-chip {
    box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
}

.history-section-card {
    overflow: hidden;
}

.history-section-card .card-body {
    position: relative;
}

.history-section-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(124,58,237,.16), rgba(59,130,246,.08), transparent);
}

.history-highlight-card {
    padding: 1.2rem;
    border-radius: 1.35rem;
    box-shadow: 0 18px 38px rgba(124, 58, 237, .08);
}

.history-upcoming-item {
    border-radius: 1.15rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .06);
}

.history-archive-grid .history-archive-card {
    border-radius: 1.35rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.history-archive-grid .history-archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .09);
}

.history-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.history-card-actions .btn {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.history-filter-panel .section-kicker,
.history-page-hero .section-kicker,
.history-form-hero .section-kicker {
    letter-spacing: .08em;
}

@media (max-width: 767.98px) {
    .history-section-header {
        align-items: flex-start;
    }

    .notification-dropdown-actions {
        flex-direction: column;
    }

    .notification-dropdown-actions .btn {
        width: 100%;
    }
}

.history-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.history-quick-tag,
.history-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(124, 58, 237, .12);
    background: rgba(124, 58, 237, .06);
    color: #6d28d9;
    transition: all .18s ease;
}

.history-quick-tag:hover {
    transform: translateY(-1px);
    background: rgba(124, 58, 237, .1);
    color: #5b21b6;
}

.history-quick-tag.active {
    background: linear-gradient(135deg, rgba(124,58,237,.16) 0%, rgba(79,70,229,.14) 100%);
    border-color: rgba(124,58,237,.24);
    box-shadow: 0 10px 22px rgba(124,58,237,.08);
}

.history-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.history-filter-chip {
    background: rgba(15, 23, 42, .05);
    border-color: rgba(15, 23, 42, .08);
    color: #334155;
}
