:root {
    --hijau-tua: #0f5132;
    --hijau-utama: #157347;
    --hijau-muda: #d1e7dd;
    --hijau-terang: #e8f5ee;
    --kuning: #f59e0b;
    --merah: #dc3545;
    --biru: #0d6efd;
    --abu: #6c757d;
    --abu-muda: #dee2e6;
    --bg: #f0f4f2;
    --putih: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .07);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .13);
    --radius: 14px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: #1a1a1a;
}

/* ── NAVBAR ── */
.navbar-logbook {
    background: linear-gradient(135deg, var(--hijau-tua) 0%, var(--hijau-utama) 100%);
    box-shadow: 0 2px 16px rgba(15, 81, 50, .25);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand-logo {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-brand-text .title {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.navbar-brand-text .sub {
    font-size: .72rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1;
}

.nav-badge-admin {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .72rem;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: .03em;
}

.btn-nav {
    border: 1.5px solid rgba(255, 255, 255, .5);
    color: #fff !important;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    padding: .35rem 1rem;
    transition: all .2s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, .15);
}

/* ── STAT CARDS ── */
.stat-card {
    border-radius: var(--radius);
    border: none;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.stat-lbl {
    font-size: .75rem;
    font-weight: 500;
    opacity: .7;
    margin-top: 2px;
}

.stat-hari {
    background: #fff7e6;
}

.stat-hari .stat-icon {
    background: #fef3c7;
    color: var(--kuning);
}

.stat-hari .stat-num {
    color: #92400e;
}

.stat-tertunda {
    background: #fef2f2;
}

.stat-tertunda .stat-icon {
    background: #fee2e2;
    color: var(--merah);
}

.stat-tertunda .stat-num {
    color: #991b1b;
}

.stat-mendatang {
    background: #eff6ff;
}

.stat-mendatang .stat-icon {
    background: #dbeafe;
    color: var(--biru);
}

.stat-mendatang .stat-num {
    color: #1e40af;
}

.stat-selesai {
    background: var(--hijau-terang);
}

.stat-selesai .stat-icon {
    background: var(--hijau-muda);
    color: var(--hijau-utama);
}

.stat-selesai .stat-num {
    color: var(--hijau-tua);
}

/* ── SECTION CARDS ── */
.section-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    padding: 1rem 1.25rem .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    font-weight: 700;
}

.section-title .icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Accent strips */
.strip-warning {
    border-left: 4px solid var(--kuning) !important;
}

.strip-danger {
    border-left: 4px solid var(--merah) !important;
}

.strip-info {
    border-left: 4px solid var(--biru) !important;
}

.strip-success {
    border-left: 4px solid var(--hijau-utama) !important;
}

/* ── TABLE ── */
.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tbl thead th {
    background: #f8f9fa;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--abu);
    padding: .65rem 1rem;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #e9ecef;
}

.tbl tbody tr {
    transition: background .15s;
}

.tbl tbody tr:hover {
    background: #f8fffe;
}

.tbl tbody td {
    padding: .75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: .875rem;
}

.tbl tbody tr:last-child td {
    border-bottom: none;
}

.col-no {
    width: 48px;
    text-align: center;
}

.col-tgl {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

.col-wkt {
    width: 75px;
    text-align: center;
}

.col-aksi {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

.col-sts {
    width: 110px;
    text-align: center;
}

/* ── BADGES ── */
.badge-status {
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 20px;
    display: inline-block;
}

.badge-selesai {
    background: #d1fae5;
    color: #065f46;
}

.badge-tertunda {
    background: #fee2e2;
    color: #991b1b;
}

.badge-mendatang {
    background: #dbeafe;
    color: #1e40af;
}

/* ── ACTION BUTTONS ── */
.btn-aksi {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: all .15s;
}

.btn-aksi:hover {
    opacity: .85;
    transform: translateY(-1px);
}

/* ── EMPTY STATE ── */
.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--abu);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: .3;
    display: block;
    margin-bottom: .75rem;
}

.empty-state p {
    font-size: .875rem;
    margin: 0;
}

/* ── FORM TAMBAH ── */
.form-tambah-card {
    border: none;
    border-radius: var(--radius);
    border-left: 4px solid var(--abu) !important;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: #dee2e6;
    font-size: .875rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hijau-utama);
    box-shadow: 0 0 0 3px rgba(21, 115, 71, .12);
}

/* ── NOTIFIKASI ── */
.toast-notif {
    position: fixed;
    top: 72px;
    right: 1.25rem;
    z-index: 2000;
    min-width: 280px;
    max-width: 360px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── FILTER SELESAI ── */
.filter-wrap {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    margin: 0 1.25rem .75rem;
}

.filter-info {
    font-size: .78rem;
    color: var(--abu);
    min-height: 1.2em;
}

/* ── EXPORT BUTTONS ── */
.btn-export {
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 20px;
    border: 1.5px solid;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ── SCROLL TO TOP ── */
#scrollTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--hijau-utama);
    color: #fff;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .2s;
    z-index: 999;
}

#scrollTop.visible {
    opacity: 1;
    pointer-events: all;
}

#scrollTop:hover {
    transform: translateY(-2px);
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp .4s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: .05s;
}

.delay-2 {
    animation-delay: .10s;
}

.delay-3 {
    animation-delay: .15s;
}

.delay-4 {
    animation-delay: .20s;
}

.delay-5 {
    animation-delay: .25s;
}

.delay-6 {
    animation-delay: .30s;
}

/* ── RESPONSIVE ── */
@media (max-width: 576px) {
    .stat-num {
        font-size: 1.3rem;
    }

    .tbl thead th,
    .tbl tbody td {
        padding: .5rem .6rem;
        font-size: .8rem;
    }
}