/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    font-size: 13.5px;
    overflow-x: hidden;
}

/* Sidebar Styling - Tema KEMENKES */
.sidebar {
    background-color: #00605B;
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Mode Desktop Collapsed */
.sidebar.collapsed {
    width: 70px;
}
.sidebar.collapsed .brand-title {
    padding: 0 10px 15px 10px;
    text-align: center;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .brand-subtitle,
.sidebar.collapsed .nav-link span {
    display: none; 
}
.sidebar.collapsed .sidebar-logo {
    width: 35px;
    height: 35px;
}
.sidebar.collapsed .nav-link {
    text-align: center;
    padding: 15px 10px;
}
.sidebar.collapsed .nav-link i {
    margin-right: 0 !important;
    font-size: 18px;
}

/* Logo & Branding */
.brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid #004D49;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.sidebar-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s;
}
.brand-subtitle {
    display: block;
    font-size: 10px; 
    font-weight: 400; 
    color: #a7f3d0;
    margin-top: -3px;
}

.sidebar .nav-link {
    color: #cbd5e1;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    font-size: 13px;
    white-space: nowrap;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #ffffff;
    background-color: #004D49;
    border-left: 3px solid #00E676;
}
.sidebar:not(.collapsed) .nav-link:hover {
    padding-left: 25px;
}

.sidebar-divider {
    border-top: 1px solid #004D49;
    margin: 10px 20px;
    opacity: 1;
}
.sidebar.collapsed .sidebar-divider {
    margin: 10px;
}

/* Konten Utama */
.main-content {
    margin-left: 260px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content.collapsed {
    margin-left: 70px;
}

.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sidebar-toggler {
    background: none;
    border: none;
    font-size: 18px;
    color: #334155;
    cursor: pointer;
    margin-right: 15px;
    transition: 0.2s;
}
.sidebar-toggler:hover {
    color: #00605B;
}

/* Overlay Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 995;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    padding: 15px 20px;
}
.btn {
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.site-footer {
    margin-top: auto;
    padding: 20px 25px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Verifikasi */
.modal-content {
    border-radius: 6px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.pin-input {
    letter-spacing: 8px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
}
.pin-input:focus {
    border-color: #00605B;
    box-shadow: none;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 260px; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0 !important; }
    .top-header { padding: 15px; }
    .site-footer { flex-direction: column; text-align: center; gap: 10px; }
}
/* ... [biarkan kode style.css sebelumnya tetap utuh] ... */

/* Tambahan untuk Widget Jam Digital di Header */
.live-clock-widget {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.live-clock-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.live-clock-time {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    font-variant-numeric: tabular-nums; /* Angka tidak bergeser saat detik berubah */
}
.live-clock-label {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}
.clock-divider {
    width: 1px;
    height: 20px;
    background-color: #cbd5e1;
}

@media (max-width: 768px) {
    /* Sembunyikan jam ganda di mobile agar header tidak sesak */
    .live-clock-widget {
        display: none !important; 
    }
}
/* ... [biarkan kode sebelumnya tetap utuh] ... */

/* TWEAK UNTUK MODAL (Efek Backdrop Blur & Klik Luar) */
.modal-backdrop.show {
    opacity: 0.6;
    backdrop-filter: blur(4px); /* Efek Kaca Buram */
    -webkit-backdrop-filter: blur(4px);
}
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* TIMELINE DESAIN DI DALAM MODAL LACAK TIKET */
.tracking-timeline {
    border-left: 3px solid #e2e8f0;
    padding-left: 25px;
    position: relative;
    margin: 20px 10px;
    text-align: left;
}
.tracking-item {
    position: relative;
    margin-bottom: 25px;
}
.tracking-item:last-child {
    margin-bottom: 0;
}
.tracking-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #cbd5e1;
    z-index: 2;
}
.tracking-item.active::before {
    border-color: #00E676;
    background: #00605B;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
}
.tracking-time {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}
.tracking-title {
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
    font-size: 13px;
}
.tracking-desc {
    font-size: 12px;
    color: #475569;
    margin: 0;
    background: #f8fafc;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
}
/* Kustomisasi Scrollbar Khusus Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #00605B; /* Warna hijau khas Kemenkes saat di-hover */
}