/* Luve CMS - Master CSS matching exact screenshot UI */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-body: #f7f8fc;
    --bg-card: #ffffff;
    --primary: #5c4ce4;
    --primary-hover: #4e3edb;
    --primary-light: #ece9fe;
    --primary-focus: rgba(92, 76, 228, 0.2);
    --text-main: #192038;
    --text-muted: #8b95a5;
    --text-secondary: #4a5568;
    --border-color: #ebedf2;
    --sidebar-width: 250px;
    --card-radius: 18px;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout container */
.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px 8px;
    text-decoration: none;
}

.brand-logo-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #192038;
    line-height: 1.1;
    margin: 0;
}

.brand-text span {
    font-size: 8.5px;
    font-weight: 700;
    color: #8b95a5;
    letter-spacing: 0.6px;
    display: block;
    margin-top: 2px;
}

/* Navigation Menu */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #556277;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
}

.nav-link svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.nav-link:hover {
    color: var(--primary);
    background-color: #f5f4fe;
}

.nav-link.active {
    background-color: #dcd6fe;
    color: #4338ca;
    font-weight: 700;
}

.nav-link.active svg {
    color: #4338ca;
}

.nav-badge {
    margin-left: auto;
    background-color: #dcd6fe;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 14px 8px;
}

/* Sidebar Promo Card */
.sidebar-promo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15, 23, 42, 0.85) 100%),
                url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=400&q=80') center/cover no-repeat;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 16px;
}

.sidebar-promo-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}

.sidebar-promo-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #192038;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.sidebar-promo-btn:hover {
    transform: scale(1.08);
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    background-color: transparent;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 480px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #556277;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: #f9faff;
    color: var(--primary);
}

.notif-badge-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    text-align: left;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.user-info .user-name {
    font-size: 14px;
    font-weight: 700;
    color: #192038;
    line-height: 1.2;
}

.user-info .user-role {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-primary {
    background-color: #3b28cc;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 40, 204, 0.25);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #2d1ebd;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 40, 204, 0.32);
}

/* Content Container */
.page-container {
    padding: 4px 36px 36px 36px;
    flex: 1;
}

/* Greeting Header */
.greeting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.greeting-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: #192038;
    line-height: 1.2;
}

.greeting-text p {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.quote-text {
    font-style: italic;
    color: #64748b;
    font-size: 13.5px;
    max-width: 360px;
    text-align: right;
    line-height: 1.4;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.kpi-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kpi-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-box.blue { background-color: #eff6ff; color: #2563eb; }
.kpi-icon-box.green { background-color: #f0fdf4; color: #16a34a; }
.kpi-icon-box.orange { background-color: #fff7ed; color: #ea580c; }
.kpi-icon-box.purple { background-color: #faf5ff; color: #9333ea; }

.kpi-icon-box svg {
    width: 24px;
    height: 24px;
}

.kpi-info .kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #192038;
    line-height: 1.1;
}

.kpi-info .kpi-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

.kpi-bottom {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-growth {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background-color: #ecfdf5;
    color: #059669;
}

.kpi-subtext {
    font-size: 12px;
    color: #8b95a5;
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
}

.progress-fill.green { background-color: #10b981; }
.progress-fill.orange { background-color: #f97316; }

/* Dashboard Middle Grid */
.dashboard-middle-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Agenda Card */
.agenda-card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.agenda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.agenda-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agenda-title-group h3 {
    font-size: 18px;
    font-weight: 800;
    color: #192038;
}

.agenda-nav-arrows {
    display: flex;
    align-items: center;
    gap: 4px;
}

.agenda-arrow-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.15s;
}

.agenda-arrow-btn:hover {
    background-color: #f8f9fc;
    color: var(--primary);
}

.agenda-date-range {
    font-size: 14px;
    font-weight: 700;
    color: #192038;
}

.agenda-view-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
}

.view-pill-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.view-pill-btn.active {
    background-color: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.btn-today {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-today:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* Agenda Grid View */
.agenda-grid-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}

.agenda-table-head {
    display: grid;
    grid-template-columns: 55px repeat(7, 1fr);
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.agenda-head-cell {
    padding: 10px 4px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.agenda-head-cell:last-child {
    border-right: none;
}

.agenda-head-cell .day-name {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.agenda-head-cell .day-date {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
}

.agenda-head-cell.today {
    background-color: #ede9fe;
}

.agenda-head-cell.today .day-name,
.agenda-head-cell.today .day-date {
    color: #4f46e5;
    font-weight: 800;
}

.agenda-table-body {
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 440px;
    overflow-y: auto;
}

.time-row {
    display: grid;
    grid-template-columns: 55px repeat(7, 1fr);
    height: 48px;
    border-bottom: 1px solid #f1f5f9;
}

.time-col-label {
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    border-right: 1px solid #f1f5f9;
}

.time-cell-slot {
    border-right: 1px solid #f1f5f9;
    position: relative;
    padding: 2px;
}

.time-cell-slot:last-child {
    border-right: none;
}

/* Event Cards inside Agenda */
.event-block {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11.5px;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 2;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.event-block:hover {
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-block .event-time {
    font-size: 9.5px;
    font-weight: 600;
    opacity: 0.85;
}

.event-block .event-title {
    font-weight: 700;
    margin: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-block .event-loc {
    font-size: 10px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event Block Color Themes */
.event-block.purple {
    background-color: #f3e8ff;
    color: #6b21a8;
    border-left: 3px solid #9333ea;
}

.event-block.blue {
    background-color: #e0f2fe;
    color: #0369a1;
    border-left: 3px solid #0284c7;
}

.event-block.green {
    background-color: #dcfce7;
    color: #15803d;
    border-left: 3px solid #16a34a;
}

.event-block.orange {
    background-color: #ffedd5;
    color: #c2410c;
    border-left: 3px solid #ea580c;
}

.event-block.pink {
    background-color: #fce7f3;
    color: #be185d;
    border-left: 3px solid #ec4899;
}

.event-block.slate {
    background-color: #f1f5f9;
    color: #334155;
    border-left: 3px solid #64748b;
}

.event-block.darkpurple {
    background-color: #4338ca;
    color: #ffffff;
    border-left: 3px solid #818cf8;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
}

.event-block.darkpurple .event-time,
.event-block.darkpurple .event-loc {
    color: #c7d2fe;
}

.event-block.darkpurple .event-star {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #fde047;
    width: 12px;
    height: 12px;
}

/* Side Column Cards */
.side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title-row h4 {
    font-size: 16px;
    font-weight: 800;
    color: #192038;
}

.link-see-all {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.15s;
}

.link-see-all:hover {
    opacity: 0.8;
}

/* Upcoming Events List */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}

.upcoming-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.upcoming-item:hover {
    transform: translateX(3px);
}

.upcoming-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.upcoming-date-box {
    text-align: center;
    flex-shrink: 0;
    min-width: 32px;
}

.upcoming-date-box .day {
    font-size: 15px;
    font-weight: 800;
    color: #192038;
    line-height: 1;
}

.upcoming-date-box .month {
    font-size: 10px;
    font-weight: 700;
    color: #8b95a5;
    text-transform: uppercase;
}

.upcoming-content {
    flex: 1;
    min-width: 0;
}

.upcoming-content h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: #192038;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-content p {
    font-size: 12px;
    color: #8b95a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.status-badge.green { background-color: #ecfdf5; color: #10b981; }
.status-badge.blue { background-color: #eff6ff; color: #3b82f6; }
.status-badge.orange { background-color: #fff7ed; color: #f97316; }
.status-badge.gray { background-color: #f1f5f9; color: #64748b; }

/* Today Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    background-color: #ffffff;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background-color: #5c4ce4;
    border-color: #5c4ce4;
    color: #ffffff;
}

.task-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: #94a3b8;
}

.task-time {
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}

/* Bottom Analytics Cards Grid */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.analytics-card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.chart-container-flex {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
}

.donut-chart-box {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.donut-chart-box svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.donut-center-text .main-val {
    font-size: 20px;
    font-weight: 800;
    color: #192038;
    line-height: 1;
}

.donut-center-text .sub-val {
    font-size: 11px;
    font-weight: 600;
    color: #8b95a5;
    margin-top: 2px;
}

.chart-legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    font-weight: 600;
    color: #475569;
}

.legend-val {
    font-weight: 700;
    color: #192038;
}

/* Modals — see extended definitions in v2.0 section below */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
/* modal-header / modal-body / modal-footer / form-group / btn-secondary
   → Authoritative definitions are in the v2.0 section at bottom of this file */



/* Event Detail Workspace Tabs */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* Search Dropdown Results */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    margin-top: 6px;
    display: none;
    z-index: 999;
    overflow: hidden;
}

.search-dropdown.show {
    display: block;
}

.search-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

.search-item:hover {
    background-color: #f8faff;
}

/* Responsive queries */
@media (max-width: 1200px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-middle-grid { grid-template-columns: 1fr; }
    .dashboard-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-sidebar { display: none; }
    .app-topbar { padding: 14px 16px; }
    .page-container { padding: 4px 16px 24px 16px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .search-box { width: 100%; }
}

/* ============================================================
   MISSING / EXTENDED CLASSES — v2.0 additions
   ============================================================ */

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: #192038;
    line-height: 1.2;
    margin: 0;
}

.page-subtitle {
    font-size: 13.5px;
    color: #8b95a5;
    margin-top: 4px;
    font-weight: 500;
}

/* KPI Row (horizontal flex, used in inner pages) */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* KPI Card — dual layout (used in inner pages) */
.kpi-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: box-shadow .2s, transform .2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #8b95a5;
    margin-bottom: 2px;
}

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #192038;
    line-height: 1.1;
}

/* Card (generic white card) */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    color: #192038;
}

/* Data Table */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: #8b95a5;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f4f6fb;
    vertical-align: middle;
    color: #334155;
}

.data-table tbody tr:hover {
    background: #fafbff;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modal — updated to use .modal-box and .active */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active,
.modal-overlay.open {
    display: flex;
}

.modal-box,
.modal-window {
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: hidden;
    animation: modalFadeIn .2s ease-out;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h2,
.modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #192038;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: background .15s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    flex-shrink: 0;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    color: #192038;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

/* Form Grid 2-col */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Status Badges — extended */
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.status-confirmed  { background: #dcfce7; color: #15803d; }
.status-progress   { background: #dbeafe; color: #1d4ed8; }
.status-pending    { background: #fef3c7; color: #b45309; }
.status-cancelled  { background: #fee2e2; color: #b91c1c; }
.status-draft      { background: #f1f5f9; color: #64748b; }

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 18px;
}

.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #8b95a5;
    gap: 12px;
    text-align: center;
}

.empty-state p {
    font-size: 13.5px;
    color: #8b95a5;
}

/* btn-secondary full */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: #475569;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #192038;
}

/* Icon button (table actions) */
.icon-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    color: #64748b;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.icon-btn:hover       { border-color: #5c4ce4; color: #5c4ce4; }
.icon-btn.danger:hover { border-color: #dc2626; color: #dc2626; }

/* Tags / Badges */
.tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Required asterisk */
.required { color: #ef4444; }

/* Filter bar */
.filter-bar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.filter-input,
.filter-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #192038;
    background: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

/* User profile dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 500;
    overflow: hidden;
}

.profile-dropdown.show { display: block; }

.profile-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-header .pd-name {
    font-size: 14px;
    font-weight: 700;
    color: #192038;
}

.profile-dropdown-header .pd-email {
    font-size: 12px;
    color: #8b95a5;
    margin-top: 2px;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s;
}

.profile-dropdown a:hover { background: #f8fafc; }

.profile-dropdown a.danger { color: #dc2626; }
.profile-dropdown a.danger:hover { background: #fef2f2; }

/* ============================================================
   DARK MODE THEME
   ============================================================ */
body.dark-mode {
    --bg-body: #0b0f19;
    --bg-card: #151d30;
    --border-color: #232f48;
    --text-main: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    background-color: var(--bg-body);
    color: var(--text-main);
}

body.dark-mode .app-sidebar {
    background-color: #111827;
    border-color: #1f2937;
}

body.dark-mode .app-topbar {
    background: transparent;
}

body.dark-mode .search-box input {
    background-color: #151d30;
    border-color: #232f48;
    color: #f1f5f9;
}

body.dark-mode .search-dropdown {
    background-color: #151d30;
    border-color: #232f48;
    color: #f1f5f9;
}

body.dark-mode .search-item:hover {
    background-color: #1e293b;
}

body.dark-mode .icon-btn,
body.dark-mode .btn-secondary,
body.dark-mode .card,
body.dark-mode .kpi-card,
body.dark-mode .side-card,
body.dark-mode .agenda-card,
body.dark-mode .modal-box,
body.dark-mode .modal-window {
    background-color: #151d30 !important;
    border-color: #232f48 !important;
    color: #f1f5f9;
}

body.dark-mode .agenda-arrow-btn,
body.dark-mode .btn-today {
    background-color: #1a2234;
    border-color: #232f48;
    color: #cbd5e1;
}

body.dark-mode .agenda-table-head,
body.dark-mode .agenda-head-cell {
    background-color: #131b2e;
    border-color: #232f48;
    color: #cbd5e1;
}

body.dark-mode .agenda-head-cell .day-date {
    color: #f1f5f9;
}

body.dark-mode .time-row {
    border-color: #1e293b;
}

body.dark-mode .time-col-label,
body.dark-mode .time-cell-slot {
    border-color: #1e293b;
}

body.dark-mode .data-table th {
    background-color: #1a2234;
    color: #94a3b8;
    border-color: #232f48;
}

body.dark-mode .data-table td {
    color: #e2e8f0;
    border-color: #1e293b;
}

body.dark-mode .data-table tbody tr:hover {
    background-color: #1a243b;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: #151d30;
    border-color: #2e3a52;
    color: #f1f5f9;
}

body.dark-mode .nav-link {
    color: #94a3b8;
}

body.dark-mode .nav-link:hover {
    background-color: #1e293b;
    color: #c7d2fe;
}

body.dark-mode .nav-link.active {
    background-color: #312e81;
    color: #e0e7ff;
}

body.dark-mode .nav-section-label {
    color: #64748b;
}

body.dark-mode .tabs-nav {
    border-color: #232f48;
}

body.dark-mode .tab-btn {
    color: #94a3b8;
}

body.dark-mode .tab-btn.active {
    color: #a5b4fc;
    border-color: #818cf8;
}

body.dark-mode .filter-bar {
    background-color: #151d30;
    border-color: #232f48;
}

body.dark-mode .page-title,
body.dark-mode .card-title,
body.dark-mode .greeting-text h2,
body.dark-mode .kpi-value,
body.dark-mode .modal-header h2,
body.dark-mode .modal-header h3 {
    color: #f1f5f9 !important;
}

body.dark-mode .page-subtitle,
body.dark-mode .greeting-text p,
body.dark-mode .quote-text,
body.dark-mode .kpi-label {
    color: #94a3b8 !important;
}

body.dark-mode #notifDropdown,
body.dark-mode #userMenuDropdown {
    background-color: #151d30 !important;
    border-color: #232f48 !important;
    color: #f1f5f9;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #232f48;
    background-color: #131b2e;
}

/* ============================================================
   MODERN DESIGN SYSTEM EXTENSIONS & UTILITIES (v2.3)
   ============================================================ */

/* Universal Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    border: 1px solid transparent;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
    gap: 6px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 14px;
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-success {
    background-color: #10b981;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Universal Form Control */
.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-main);
    background-color: var(--bg-card);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

/* Spacing Helpers */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Flexbox Helpers */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Gap Helpers */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid Helpers */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

/* Responsive Grid & Flex Breakpoints */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:w-auto { width: auto; }
    .md\:w-72 { width: 18rem; }
    .md\:w-80 { width: 20rem; }
    .md\:block { display: block; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sizing, Padding & Positioning Helpers */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-44 { height: 11rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0px; }
.inset-y-0 { top: 0px; bottom: 0px; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.bottom-3 { bottom: 0.75rem; }
.left-3 { left: 0.75rem; }
.pointer-events-none { pointer-events: none; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-3 { padding-top: 0.75rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-10 { padding-left: 2.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-border { border-color: var(--border-color); }
.border-dashed { border-style: dashed; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-white { color: #ffffff; }
.text-danger { color: #ef4444; }
.bg-card { background-color: var(--bg-card); }
.bg-secondary { background-color: #f8fafc; }

/* Responsive Grid Overrides for Inline KPI Rows */
@media (max-width: 1200px) {
    .kpi-row,
    .kpi-grid-4,
    [style*="grid-template-columns:repeat(4"],
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .kpi-grid-5,
    [style*="grid-template-columns:repeat(5"],
    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 840px) {
    .kpi-grid-5,
    [style*="grid-template-columns:repeat(5"],
    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .kpi-row,
    .kpi-grid-5,
    .kpi-grid-4,
    [style*="grid-template-columns:repeat(4"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(5"],
    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: 1fr !important;
    }
    .page-container {
        padding: 4px 16px 24px 16px !important;
    }
    .app-topbar {
        padding: 12px 16px !important;
    }
}

/* Comprehensive Dark Mode Overrides */
body.dark-mode {
    --bg-body: #090d16;
    --bg-card: #131b2e;
    --border-color: #1e293b;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

body.dark-mode [style*="background: #ffffff"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: white"] {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

body.dark-mode [style*="color: #192038"],
body.dark-mode [style*="color:#192038"],
body.dark-mode [style*="color: #0f172a"],
body.dark-mode [style*="color:#0f172a"],
body.dark-mode [style*="color: #1e293b"],
body.dark-mode [style*="color:#1e293b"],
body.dark-mode [style*="color: #334155"],
body.dark-mode [style*="color:#334155"] {
    color: var(--text-main) !important;
}

body.dark-mode [style*="color: #475569"],
body.dark-mode [style*="color:#475569"],
body.dark-mode [style*="color: #64748b"],
body.dark-mode [style*="color:#64748b"],
body.dark-mode [style*="color: #8b95a5"],
body.dark-mode [style*="color:#8b95a5"] {
    color: var(--text-muted) !important;
}

body.dark-mode .form-control {
    background-color: #151d30;
    border-color: #2e3a52;
    color: #f1f5f9;
}

body.dark-mode .form-control:focus {
    border-color: var(--primary);
}

body.dark-mode .bg-secondary {
    background-color: #1a243b !important;
}

body.dark-mode .badge-secondary {
    background: #1e293b;
    color: #94a3b8;
}

body.dark-mode .btn-outline {
    border-color: #2e3a52;
    color: #f1f5f9;
}

body.dark-mode .btn-outline:hover {
    background-color: #1e293b;
    color: #f8fafc;
}

body.dark-mode .modal-card,
body.dark-mode .modal-box,
body.dark-mode [id*="Modal"] > div {
    background-color: #131b2e !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

body.dark-mode .modal-footer {
    background-color: #0f1523 !important;
    border-top-color: #1e293b !important;
}

body.dark-mode .tag,
body.dark-mode .badge-tag {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .table-foot-summary td {
    background-color: #0f1523 !important;
    border-top-color: #1e293b !important;
    color: #f8fafc !important;
}

body.dark-mode .progress-track {
    background-color: #1e293b !important;
}

body.dark-mode .status-confirmed {
    background-color: rgba(34, 197, 94, 0.16) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

body.dark-mode .status-progress {
    background-color: rgba(59, 130, 246, 0.16) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .status-pending {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

body.dark-mode .status-cancelled {
    background-color: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

body.dark-mode .status-draft {
    background-color: rgba(148, 163, 184, 0.16) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

body.dark-mode .filter-bar,
body.dark-mode .filter-card {
    background-color: #131b2e !important;
    border-color: #1e293b !important;
}

body.dark-mode .filter-input,
body.dark-mode .filter-select {
    background-color: #151d30 !important;
    border-color: #2e3a52 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .icon-btn {
    background-color: #151d30 !important;
    border-color: #232f48 !important;
    color: #94a3b8 !important;
}

body.dark-mode .icon-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

body.dark-mode .icon-btn.danger:hover {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}



