/* =========================================================================
   VARIABLES & DESIGN SYSTEM
   ========================================================================= */
:root {
    /* Brand & Accent Colors */
    --primary: #0F5BA6;
    --primary-hover: #0b4580;
    --secondary: #16A085;
    --accent: #F39C12;
    --danger: #E74C3C;

    /* Backgrounds & Surfaces */
    --bg-base: #f4f6f9;
    --bg-gradient: #f4f6f9;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    
    /* Layout & Utilities */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --sidebar-width: 250px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Orbs for Glassmorphism Context */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.1;
    animation: float 10s infinite alternate;
}

.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -50px; right: -50px; animation-delay: 2s; }
.orb-3 { width: 350px; height: 350px; background: var(--accent); top: 40%; right: 20%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

.btn-primary, .btn-secondary, .close-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.close-btn {
    background: transparent;
    color: var(--text-secondary);
    padding: 5px;
    font-size: 1.5rem;
}
.close-btn:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* =========================================================================
   LAYOUT (DASHBOARD)
   ========================================================================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
    color: var(--text-primary);
}
.sidebar .brand ion-icon {
    font-size: 2rem;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}
.nav-links a:hover, .nav-links li.active a {
    background: rgba(15, 91, 166, 0.1);
    color: var(--primary);
}
.nav-links li.active a ion-icon {
    color: var(--primary);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* HEADER */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.greeting h1 {
    font-size: 2rem;
    font-weight: 700;
}
.greeting p {
    color: var(--text-secondary);
    margin-top: 5px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}
.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.stat-info h2 {
    font-size: 1.8rem;
    margin-top: 5px;
}

/* TIMELINE CONTAINER */
.timeline-container {
    flex: 1;
    padding: 30px;
    border-radius: var(--radius-lg);
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
}
.glass-input.subtle { width: auto; }
.glass-input:focus { border-color: var(--primary); background: #ffffff; }
.glass-input::placeholder { color: var(--text-muted); }

/* GANTT CHART STYLES */
.gantt-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 65vh;
    padding-bottom: 20px;
    margin-top: 20px;
}

.gantt-grid {
    min-width: 800px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.5);
}

.gantt-header {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(244, 246, 249, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.gantt-header-label {
    width: 280px;
    flex-shrink: 0;
    padding: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-right: 1px solid var(--glass-border);
    text-align: center;
}

.gantt-months {
    flex: 1;
    display: flex;
    position: relative;
}

.gantt-month-group {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.gantt-month-group:last-child {
    border-right: none;
}

.gantt-month-name {
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gantt-weeks {
    display: flex;
    flex: 1;
}

.gantt-week {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.gantt-week:last-child {
    border-right: none;
}

.gantt-row {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: 80px;
}

.gantt-row:last-child {
    border-bottom: none;
}

.gantt-row-label {
    width: 280px;
    flex-shrink: 0;
    padding: 15px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gantt-row-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.gantt-row-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.gantt-bars-container {
    flex: 1;
    position: relative;
    padding: 10px 0;
    min-height: 60px;
}

/* Background grid delineators */
.gantt-bg-lines {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    pointer-events: none;
}

.gantt-bg-line {
    flex: 1;
    border-right: 1px solid rgba(0,0,0,0.03);
}

.gantt-bg-line:last-child {
    border-right: none;
}

.gantt-bar-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    z-index: 10;
}

.gantt-bar {
    height: 100%;
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #2d3436;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.gantt-bar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 40px; /* Space for actions */
}

.gantt-bar:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 20;
}

.gantt-bar.c-0 { background: #C4A4A0; } /* Neraca Saldo */
.gantt-bar.c-1 { background: #F2D088; } /* Jurnal Umum */
.gantt-bar.c-2 { background: #F29699; color: white; } /* Buku Besar */
.gantt-bar.c-3 { background: #8B7BCB; color: white; } /* JP & Worksheet */
.gantt-bar.c-4 { background: #A6CAA8; } /* Laporan Keuangan */
.gantt-bar.c-5 { background: #AA8F6E; color: white; } /* Laporan Proyek */
.gantt-bar.c-6 { background: #FEE197; } /* Cetak Laporan */
.gantt-bar.c-7 { background: #AD7AA1; color: white; } /* Ujian Proyek */

/* Tooltip styles */
.gantt-tooltip {
    position: fixed;
    z-index: 1000;
    width: 350px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.gantt-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

.gantt-tooltip h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.gantt-tooltip p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.gantt-tooltip .status-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-todo { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.status-inprogress { background: rgba(253, 203, 110, 0.2); color: #fdcb6e; }
.status-done { background: rgba(0, 184, 148, 0.2); color: #00b894; }

.action-overlay {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
}

.gantt-bar:hover .action-overlay {
    opacity: 1;
}

.action-overlay button {
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.action-overlay button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.action-overlay button.delete:hover {
    background: var(--danger);
}

.item-actions {
    display: flex;
    gap: 10px;
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.btn-icon:hover { color: var(--primary); transform: scale(1.1); }
.btn-icon.delete:hover { color: var(--danger); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}
.empty-state ion-icon { font-size: 4rem; opacity: 0.5; margin-bottom: 15px; }

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}

select.glass-input option {
    background: var(--bg-base);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* =========================================================================
   TABLE STYLES
   ========================================================================= */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.glass-table th, .glass-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.glass-table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.glass-table tbody tr {
    transition: var(--transition);
}

.glass-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* =========================================================================
   CHECKLIST UI
   ========================================================================= */
.checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.checklist-category {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--glass-border);
}
.checklist-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-medium);
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 10px;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}
.checklist-item:hover {
    background: var(--gray-light);
}
.checklist-item.done {
    opacity: 0.8;
}
.checklist-item.done .chk-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}
.chk-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.checklist-item.done .chk-box {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.chk-text-wrapper {
    flex: 1;
}
.chk-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.chk-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 3px;
    display: block;
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 900px) {
    .dashboard-wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 20px; }
    .sidebar .brand { margin-bottom: 20px; }
    .nav-links { flex-direction: row; flex-wrap: wrap; }
    .timeline-container { padding: 20px; }
}

@media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
    .top-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .form-row { flex-direction: column; gap: 0; }
}

/* =========================================================================
   LANDING & LOGIN PAGE
   ========================================================================= */
.landing-body, .login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.landing-nav {
    position: fixed;
    top: 20px;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 100;
}
.landing-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.landing-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 100px 20px 20px;
}

.hero-content {
    max-width: 800px;
    padding: 60px 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(15, 91, 166, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-bottom: 50px;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 30px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}
.feature-item ion-icon {
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Login Page */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-centered {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: rgba(15, 91, 166, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper ion-icon {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.glass-input.with-icon {
    padding-left: 45px;
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   CALENDAR TIMELINE
   ========================================================================= */
.calendar-timeline-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.calendar-card {
    display: flex;
    flex-direction: row;
    gap: 30px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 30px;
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--glass-border);
    align-items: flex-start;
}

.calendar-container {
    background: #FFF4F1;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 380px;
    flex-shrink: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2d3436;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.calendar-year {
    background: #E8A59C;
    color: #2d3436;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 8px;
}

.calendar-month {
    font-size: 1.8rem;
    font-weight: 800;
    color: #213547;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-day-header {
    font-weight: 700;
    font-size: 0.8rem;
    color: #2d3436;
    background: #E8A59C;
    padding: 8px 0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #213547;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
}

.cal-day.empty {
    background: transparent;
    color: transparent;
    pointer-events: none;
}

.c-neraca { background: #C4A4A0 !important; color: #2d3436 !important; }
.c-jurnal { background: #F2D088 !important; color: #2d3436 !important; }
.c-buku { background: #F29699 !important; color: #2d3436 !important; }
.c-jp { background: #8B7BCB !important; color: #fff !important; }
.c-laporan { background: #A6CAA8 !important; color: #2d3436 !important; }
.c-proyek { background: #AA8F6E !important; color: #fff !important; }
.c-cetak { background: #FEE197 !important; color: #2d3436 !important; }
.c-ujian { background: #AD7AA1 !important; color: #fff !important; }

.legend-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legend-color {
    width: 45px;
    height: 35px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-text {
    font-weight: 600;
    font-size: 1rem;
    color: #213547;
}

@media (max-width: 900px) {
    .calendar-card {
        flex-direction: column;
        align-items: center;
    }
    .calendar-container {
        width: 100%;
        max-width: 380px;
    }
    .legend-container {
        width: 100%;
        max-width: 380px;
    }
}

/* =========================================================================
   MOBILE MENU OVERLAY
   ========================================================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: var(--glass-bg);
    width: 280px;
    height: 100%;
    padding: 30px 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.close-mobile-menu {
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: 30px;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-nav-link:hover {
    background: rgba(15, 91, 166, 0.1);
    color: var(--primary);
}

/* =========================================================================
   MOBILE RESPONSIVENESS (LANDING PAGE)
   ========================================================================= */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
    .landing-nav {
        width: 95%;
        padding: 15px;
    }
    .landing-nav .brand h2 {
        display: none;
    }
    .hero-content {
        padding: 40px 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .public-tracking-section {
        padding: 10px !important;
    }
    .public-tracking-section .glass-panel {
        padding: 15px !important;
    }
    .timeline-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        align-items: stretch !important;
    }
    .timeline-header .filters {
        flex-direction: column;
        width: 100%;
    }
    .timeline-header .filters select,
    .timeline-header .filters input {
        width: 100%;
    }
    
    /* Modify view detail button on mobile */
    .view-detail-btn {
        padding: 6px;
    }
    .view-detail-btn ion-icon {
        font-size: 1.2rem;
    }
    .view-detail-btn span {
        display: none;
    }
}
