/* Bootstrap 5 + AdminLTE v4 */
@import 'bootstrap/dist/css/bootstrap.min.css';
@import 'bootstrap-icons/font/bootstrap-icons.min.css';
@import 'admin-lte/dist/css/adminlte.min.css';

/* Custom Monev LLDIKTI Theme — glassy modern */
:root {
    --bs-primary: #1e3a8a;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #eef2f7 0%, #e0e9f5 50%, #f1f5f9 100%);
    background-attachment: fixed;
}

/* Sidebar: gradasi navy gelap, teks selalu kontras */
.app-sidebar {
    --lte-sidebar-color: rgba(255, 255, 255, 0.78);
    --lte-sidebar-hover-color: #ffffff;
    --lte-sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --lte-sidebar-active-color: #ffffff;
    --lte-sidebar-menu-active-bg: linear-gradient(90deg, #1e40af, #3b82f6);
    --lte-sidebar-menu-active-color: #ffffff;
    --lte-sidebar-header-color: rgba(255, 255, 255, 0.45);
    --lte-sidebar-submenu-bg: rgba(0, 0, 0, 0.2);
    --lte-sidebar-submenu-color: rgba(255, 255, 255, 0.65);
    --lte-sidebar-submenu-hover-color: #ffffff;
    --lte-sidebar-submenu-active-color: #ffffff;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #16213b 100%) !important;
}

.app-sidebar .sidebar-menu .nav-link.active {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.app-sidebar .sidebar-menu .nav-link {
    border-radius: 0.5rem;
    margin: 0 0.5rem;
}

.app-sidebar .sidebar-brand {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar .sidebar-brand .brand-text {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Header: glass effect */
.app-header {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* Kartu & panel: glass transparan */
.card,
.table-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 0.9rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.small-box {
    border-radius: 0.9rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0.94;
}

.small-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.app-footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-sidebar .sidebar-brand .brand-text {
    font-weight: 700;
}

.badge-sesuai { background: #198754; color: #fff; border: 1px solid #146c43; }
.badge-kurang { background: #ffc107; color: #212529; border: 1px solid #e0a800; }
.badge-perbaikan { background: #dc3545; color: #fff; border: 1px solid #b02a37; }
.badge-menunggu { background: #0dcaf0; color: #000; border: 1px solid #0aa2c0; }
.badge-belum-upload { background: #6c757d; color: #fff; border: 1px solid #565e64; }

.checklist-table {
    font-size: 0.95rem;
}

.checklist-table thead th {
    background-color: #6f42c1 !important;
    color: #fff;
    font-weight: 600;
    vertical-align: middle;
}

.checklist-table tbody td {
    vertical-align: middle;
}

.checklist-table .table-primary {
    --bs-table-bg: #dbeafe;
    --bs-table-color: #1e3a8a;
}

.checklist-table .table-info {
    --bs-table-bg: #e0f2fe;
    --bs-table-color: #0c4a6e;
}

.status-badge {
    display: inline-block;
    min-width: 140px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.validasi-form .form-select,
.validasi-form textarea {
    font-size: 0.875rem;
}

/* Pagination serasi tema */
.pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 0.5rem;
    color: #1e3a8a;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.85);
}

.pagination .page-link:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1e40af;
}

.pagination .page-item.active .page-link {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: rgba(241, 245, 249, 0.8);
}

/* Tabel laporan ala Excel */
.laporan-table {
    font-size: 0.8rem;
    border-collapse: collapse;
    white-space: nowrap;
}

.laporan-table th,
.laporan-table td {
    border: 1px solid #94a3b8 !important;
    vertical-align: middle;
    padding: 0.35rem 0.5rem;
}

.laporan-table thead th {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    min-width: 90px;
}

.laporan-table thead tr.nomor-kolom th {
    background: #cbd5e1;
    font-weight: 700;
    min-width: 0;
}

.laporan-table tbody tr:hover td {
    background: rgba(30, 64, 175, 0.06);
}
