/* Futuristic CSS - Maroon & White Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #1e1e2f;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #800000;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

.card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.card-header {
    background: #800000;
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}
.card-body {
    padding: 1.5rem;
    color: #2c2c2c;
}
.card-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-maroon {
    background: #800000;
    color: white;
    box-shadow: 0 2px 5px rgba(128,0,0,0.2);
}
.btn-maroon:hover {
    background: #9a0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128,0,0,0.3);
}
.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}
.btn-warning {
    background: #ffc107;
    color: #212529;
}
.btn-info {
    background: #17a2b8;
    color: white;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-outline-maroon {
    background: transparent;
    border: 2px solid #800000;
    color: #800000;
}
.btn-outline-maroon:hover {
    background: #800000;
    color: white;
}
.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}
.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e1e2f;
    transition: all 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128,0,0,0.2);
}
.form-control::placeholder {
    color: #adb5bd;
}
label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: inline-block;
    color: #495057;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
}
.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #800000;
}

.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}
.nav-item {
    margin-right: 1rem;
}
.nav-link {
    padding: 0.6rem 1.2rem;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 30px 30px 0 0;
}
.nav-link.active {
    background: transparent;
    color: #800000;
    border-bottom: 3px solid #800000;
}
.tab-content .tab-pane {
    display: none;
}
.tab-content .active {
    display: block;
}

.table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border-collapse: collapse;
}
.table thead th {
    background: #800000;
    padding: 0.9rem;
    font-weight: 600;
    color: white;
}
.table tbody td {
    padding: 0.8rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}
.table-bordered {
    border: 1px solid #dee2e6;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-dialog {
    max-width: 600px;
    width: 90%;
    margin: auto;
}
.modal-lg {
    max-width: 800px;
}
.modal-content {
    background: white;
    border-radius: 24px;
    overflow: hidden;
}
.modal-header {
    padding: 1rem 1.5rem;
    background: #800000;
    color: white;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.btn-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: white;
    cursor: pointer;
    opacity: 0.7;
}
.btn-close:hover {
    opacity: 1;
}

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}
.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.sidebar {
    background: #800000;
    color: white;
    min-height: 100vh;
}
.sidebar h4 {
    color: white;
}
.nav.flex-column .nav-link {
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 0.5rem;
    transition: 0.2s;
    color: rgba(255,255,255,0.8);
}
.nav.flex-column .nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
    color: white;
}
.nav.flex-column .nav-link.text-warning {
    color: #ffc107;
}

.text-center { text-align: center; }
.text-white { color: white; }
.text-maroon { color: #800000; }
.text-dark { color: #1e1e2f; }
.bg-white { background: white; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-column { flex-direction: column; }
.w-100 { width: 100%; }
.min-vh-100 { min-height: 100vh; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.gap-2 { gap: 0.5rem; }
.shadow-sm { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.rounded { border-radius: 12px; }

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #800000;
}
.dashboard-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #800000;
}
.dashboard-card .btn-kelola {
    background: #800000;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;
}
.dashboard-card .btn-kelola:hover {
    background: #9a0000;
}

@media (max-width: 768px) {
    .card-body { padding: 1.2rem; }
    .btn { padding: 0.5rem 1rem; }
    .table thead th, .table tbody td { padding: 0.6rem; font-size: 0.85rem; }
    .nav-link { padding: 0.5rem 0.8rem; }
    .sidebar { position: static; min-height: auto; }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #6c757d;
}
.breadcrumb-item a {
    color: #800000;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #6c757d;
}

/* ========== HAMBURGER MENU (OFFCANVAS KANAN) ========== */
.admin-header {
    background: #800000;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.admin-header h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}
.hamburger-right {
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    line-height: 1;
}
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #800000;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1.5rem;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
}
.offcanvas-menu.show {
    transform: translateX(0);
}
.offcanvas-menu .close-btn {
    text-align: right;
    margin-bottom: 1.5rem;
}
.offcanvas-menu .close-btn button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.offcanvas-menu .user-info {
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.offcanvas-menu .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.offcanvas-menu .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}
.offcanvas-menu .nav-menu a.active {
    border-left: 3px solid white;
    padding-left: 0.5rem;
}
.offcanvas-menu .logout-link {
    margin-top: 2rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    text-align: center;
}
.offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}
.offcanvas-overlay.show {
    display: block;
}