* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Light mode (default) */
body {
    background: #f5f7fb;
    color: #1e293b;
}

body.dark {
    background: #0f172a;
    color: #f1f5f9;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: inherit;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255,255,255,0.9);
}
body.dark .header {
    border-color: #334155;
    background-color: rgba(15,23,42,0.9);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: inherit;
    padding: 0 8px;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.2s ease;
    overflow-y: auto;
}
body.dark .sidebar {
    background: #1e293b;
}
.sidebar.open {
    left: 0;
}
.sidebar-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #e2e8f0;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.sidebar nav a {
    padding: 12px 16px;
    text-decoration: none;
    color: #1e293b;
    border-radius: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}
body.dark .sidebar nav a {
    color: #f1f5f9;
}
.sidebar nav a:hover,
.sidebar nav a.active {
    background: #e2e8f0;
}
body.dark .sidebar nav a:hover,
body.dark .sidebar nav a.active {
    background: #334155;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    display: none;
}
.overlay.show {
    display: block;
}

/* Container */
.container-full {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero section */
.hero {
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin: 24px 0;
}
.hero-overlay {
    background: rgba(0,0,0,0.5);
    width: 100%;
    min-height: 50vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.hero h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}
.hero p {
    color: #fff;
    max-width: 600px;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-hero {
    background: #fff;
    color: #0f172a;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-hero.secondary {
    background: rgba(255,255,255,0.85);
}

/* Dashboard cards */
.dashboard-grid {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.dashboard-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
body.dark .dashboard-card {
    background: #1e293b;
}
.bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    margin: 12px 0;
}
.fill {
    height: 100%;
    background: #0f172a;
    border-radius: 20px;
}
.danger-fill {
    background: #ef4444;
}
.percentage {
    font-size: 1.8rem;
    font-weight: 800;
}
.link-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 600;
    margin-top: 12px;
}

/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.dark .table-wrapper {
    background: #1e293b;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
body.dark th, body.dark td {
    border-color: #334155;
}
th {
    background: #f8fafc;
    font-weight: 600;
}
body.dark th {
    background: #0f172a;
}

/* Status badges */
.status {
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.status.active { background: #dbeafe; color: #1e40af; }
.status.partial { background: #fef3c7; color: #92400e; }
.status.returned { background: #d1fae5; color: #065f46; }
.status.overdue { background: #fecaca; color: #991b1b; }

/* Row highlights */
tr.partial { background: #fff7e6; }
body.dark tr.partial { background: #3d3520; }
tr.overdue { background: #ffe5e5; }
body.dark tr.overdue { background: #4d2020; }

/* Photo gallery */
.photo-gallery {
    cursor: pointer;
}
.thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}
.photo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.photo-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.modal-card {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
body.dark .modal-card {
    background: #1e293b;
}
.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}
.btn {
    padding: 10px 20px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary {
    background: #0f172a;
    color: #fff;
}
.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}
body.dark .btn-secondary {
    background: #334155;
    color: #f1f5f9;
}

/* Filter bar */
.filters-bar {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
    align-items: center;
}
.filters-bar select, .filters-bar input {
    padding: 10px 16px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    background: #fff;
} 
body.dark .filters-bar select, body.dark .filters-bar input {
    background: #1e293b;
    border-color: #475569;
    color: #fff;
}

.admin-badge {
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: bold;
}

.edit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container-full {
        padding: 0 16px;
    }
    .hero {
        min-height: 40vh;
    }
    .hero-overlay {
        min-height: 40vh;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .dashboard-grid {
        flex-direction: column;
    }
    .header {
        padding: 8px 16px;
    }
    th, td {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Modal mini edit */
.modal.micro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.micro .modal-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
body.dark .modal.micro .modal-card {
    background: #1e293b;
}

/* Warna anomaly rows */
tr.overdue-row {
    background: #ffe5e5 !important;
}
body.dark tr.overdue-row {
    background: #4d2020 !important;
}
tr.partial-row {
    background: #fff7e6 !important;
}
body.dark tr.partial-row {
    background: #3d3520 !important;
}
tr.error-row {
    background: #2d2d2d !important;
    color: #ffaaaa;
}
body.dark tr.error-row {
    background: #111111 !important;
}
tr.returned-row {
    background: #dbeafe !important;
}
body.dark tr.returned-row {
    background: #1e3a5f !important;
}
/* Tombol edit yang jelas */
button.edit-session-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
button.edit-session-btn:hover {
    background-color: #2563eb;
}
body.dark button.edit-session-btn {
    background-color: #1d4ed8;
}
body.dark button.edit-session-btn:hover {
    background-color: #1e40af;
}