body {
    font-family: var(--theme-font);
    background-color: var(--theme-bg);
    color: #1e293b;
}

.navbar-custom {
    background: linear-gradient(135deg, var(--theme-primary), #0f172a);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.btn-theme {
    background-color: var(--theme-primary);
    color: #fff;
    border-radius: var(--theme-radius);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.btn-theme:hover {
    background-color: #172554;
    color: #fff;
    transform: translateY(-1px);
}

.card-elegant {
    background: var(--theme-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--theme-radius);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.badge-accent {
    background-color: rgba(217, 119, 6, 0.12);
    color: var(--theme-accent);
    font-weight: 600;
}

.history-scroll {
    max-height: 360px;
    overflow-y: auto;
}

.history-item {
    transition: background-color 0.15s ease;
}

.history-item:hover {
    background-color: #f1f5f9;
}

.history-item.active-history {
    background-color: rgba(30, 58, 138, 0.08);
    border: 1px solid var(--theme-primary);
}

/* Grid Kalender Bulanan */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-header {
    text-align: center;
    font-weight: 700;
    padding: 10px 4px;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
}

.cal-header.sunday {
    background: #dc2626;
}

.cal-cell {
    min-height: 115px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cal-cell:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.08);
}

.cal-cell.empty {
    background: rgba(241, 245, 249, 0.5);
    cursor: default;
    border-style: dashed;
}

.cal-cell.today {
    border: 2px solid var(--theme-accent);
    background: #fffbeb;
}

.cal-day-num {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.cal-meta {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

.nav-pills .nav-link.active {
    background-color: var(--theme-primary);
}

/* Mode Cetak Kertas A4 */
.print-only-header {
    display: none;
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    .no-print, .navbar, footer {
        display: none !important;
    }
    .print-only-header {
        display: block !important;
        border-bottom: 2px solid #000;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    .card-elegant {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    body.print-mode-milestone #singleResultCard {
        display: none !important;
    }
    .col-lg-7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .calendar-grid { gap: 4px; }
    .cal-cell { min-height: 80px; padding: 4px; }
    .cal-day-num { font-size: 1rem; }
    .cal-meta { font-size: 0.62rem; }
}