@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1e3a5f;
    --primary-dark: #152c4a;
    --primary-light: #2a5080;
    --sidebar-bg: #0f1d33;
    --sidebar-hover: #1a2d4d;
    --sidebar-active: #243e66;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.baris {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.baris.celah-3 { margin-left: -0.75rem; margin-right: -0.75rem; gap: 0; }
.baris.celah-3 > [class*="kolom"] { padding-left: 0.75rem; padding-right: 0.75rem; margin-bottom: 1rem; }
.baris.celah-4 { margin-left: -0.75rem; margin-right: -0.75rem; gap: 0; }
.baris.celah-4 > [class*="kolom"] { padding-left: 0.75rem; padding-right: 0.75rem; margin-bottom: 1.5rem; }

.kolom-md-4,
.kolom-md-6,
.kolom-md-8,
.kolom-sm-6,
.kolom-lg-4,
.kolom-lg-8,
.kolom-xl-3,
.kolom-4,
.kolom-6,
.kolom-8,
.kolom-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.kolom-4 { width: 33.333%; }
.kolom-6 { width: 50%; }
.kolom-8 { width: 66.666%; }
.kolom-12 { width: 100%; }

@media (min-width: 576px) {
    .kolom-sm-6 { width: 50%; }
}

@media (min-width: 768px) {
    .kolom-md-4 { width: 33.333%; }
    .kolom-md-6 { width: 50%; }
    .kolom-md-8 { width: 66.666%; }
}

@media (min-width: 992px) {
    .kolom-lg-4 { width: 33.333%; }
    .kolom-lg-8 { width: 66.666%; }
}

@media (min-width: 1200px) {
    .kolom-xl-3 { width: 25%; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.rata-tengah { align-items: center; }
.rata-antara { justify-content: space-between; }
.celah-2 { gap: 0.5rem; }
.celah-3 { gap: 0.75rem; }
.celah-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.sembunyikan { display: none; }
.teks-merah { color: var(--danger); }

@media (min-width: 768px) {
    .tampil-md { display: flex; }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-latar {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    animation: modalMasuk 0.2s ease;
}

.modal-latar.tampil {
    display: flex;
}

.modal-kotak {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalGeser 0.25s ease;
}

.modal-kotak.kecil {
    max-width: 360px;
}

.modal-kepala {
    background: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-kepala h6 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.modal-isi {
    padding: 1.25rem;
}

.modal-kaki {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.btn-tutup-modal {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.btn-tutup-modal:hover {
    color: var(--text-primary);
}

@keyframes modalMasuk {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalGeser {
    from { transform: scale(0.95) translateY(-10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #0a1628 100%);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sidebar-brand .brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-menu {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu .menu-label {
    padding: 0.5rem 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.5rem;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-menu .menu-item:hover {
    background-color: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--accent);
}

.sidebar-menu .menu-item.active {
    background-color: var(--sidebar-active);
    color: #fff;
    border-left-color: var(--accent);
}

.sidebar-menu .menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.badge-menu {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar-footer .user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-footer .user-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-footer .user-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

.main-content {
    margin-left: 230px;
    min-height: 100vh;
    transition: var(--transition);
}

.topbar {
    background: var(--card-bg);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: var(--shadow-sm);
}

.topbar-title h1 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.topbar-title p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
}

.content-area {
    padding: 1.25rem 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.15rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    transition: var(--transition);
}

.stat-card.total::before { background: linear-gradient(135deg, var(--accent) 0%, transparent 100%); }
.stat-card.aktif::before { background: linear-gradient(135deg, var(--success) 0%, transparent 100%); }
.stat-card.pensiun::before { background: linear-gradient(135deg, var(--danger) 0%, transparent 100%); }
.stat-card.belajar::before { background: linear-gradient(135deg, var(--info) 0%, transparent 100%); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.05);
    border-color: transparent;
}

.stat-card:hover::before {
    opacity: 0.08;
}

.stat-card.total:hover { border-bottom: 3px solid var(--accent); padding-bottom: calc(1.5rem - 2px); }
.stat-card.aktif:hover { border-bottom: 3px solid var(--success); padding-bottom: calc(1.5rem - 2px); }
.stat-card.pensiun:hover { border-bottom: 3px solid var(--danger); padding-bottom: calc(1.5rem - 2px); }
.stat-card.belajar:hover { border-bottom: 3px solid var(--info); padding-bottom: calc(1.5rem - 2px); }

.stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    z-index: 2;
}

.stat-card.total .stat-icon { color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.1); }
.stat-card.aktif .stat-icon { color: var(--success); border: 1px solid rgba(16, 185, 129, 0.1); }
.stat-card.pensiun .stat-icon { color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.1); }
.stat-card.belajar .stat-icon { color: var(--info); border: 1px solid rgba(6, 182, 212, 0.1); }

.stat-card .stat-info {
    position: relative;
    z-index: 2;
    padding-right: 3rem;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.card-custom {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-custom .card-header-custom {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-custom .card-header-custom h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-custom .card-body-custom {
    padding: 1rem 1.25rem;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom thead th {
    background: var(--body-bg);
    padding: 0.55rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    text-align: left;
}

.table-custom tbody td {
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-custom tbody tr {
    transition: var(--transition);
}

.table-custom tbody tr:nth-child(odd) { background-color: #ffffff; }
.table-custom tbody tr:nth-child(even) { background-color: rgba(59, 130, 246, 0.04); }

.table-custom tbody tr:hover { background-color: rgba(59, 130, 246, 0.1); }

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.badge-status {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-aktif { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-aktif::before { background: #059669; }
.badge-cuti { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge-cuti::before { background: #d97706; }
.badge-pensiun { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-pensiun::before { background: #dc2626; }
.badge-belajar { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.badge-belajar::before { background: #0891b2; }

.btn-primary-custom {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    color: #fff;
}

.btn-secondary-custom {
    background: var(--body-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-secondary-custom:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-success-custom {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-success-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    color: #fff;
}

.btn-danger-custom {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-danger-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    color: #fff;
}

.btn-warning-custom {
    background: var(--warning);
    color: #fff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-warning-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    color: #fff;
}

.btn-sm-custom {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.form-section .section-header {
    padding: 1rem 1.5rem;
    background: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section .section-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}

.form-section .section-header i {
    color: var(--accent);
    font-size: 1rem;
}

.form-section .section-body {
    padding: 1.5rem;
}

.form-label-custom {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-control-custom {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
    background: var(--card-bg);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control-custom.is-invalid {
    border-color: var(--danger);
}

.form-control-custom.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.invalid-feedback-custom {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.3rem;
    font-weight: 500;
}

.form-select-custom {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
    background: var(--card-bg);
    cursor: pointer;
    appearance: auto;
}

.form-select-custom:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.foto-preview {
    width: 150px;
    height: 150px;
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--body-bg);
    transition: var(--transition);
}

.foto-preview:hover {
    border-color: var(--accent);
}

.foto-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-preview .placeholder-icon {
    font-size: 2.5rem;
    color: var(--text-light);
}

.profil-foto {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.profil-placeholder {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.search-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input-wrapper i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-input-wrapper input {
    padding-left: 2.5rem;
}

.alert-custom {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border: none;
    animation: slideDown 0.3s ease;
}

.alert-success-custom {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid var(--success);
}

.alert-danger-custom {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid var(--danger);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-area {
    animation: fadeIn 0.4s ease;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1d33 0%, #1e3a5f 50%, #2a5080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .brand-icon-lg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.login-brand h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.login-brand p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.login-card .form-label-custom {
    font-size: 0.8rem;
}

.login-card .form-control-custom {
    padding: 0.7rem 1rem;
}

.login-card .btn-primary-custom {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pagination-custom .page-link {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    transition: var(--transition);
}

.pagination-custom .page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination-custom .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.aksi-group {
    display: flex;
    gap: 0.35rem;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .btn-toggle-sidebar {
        display: block;
    }

    .content-area {
        padding: 1rem;
    }

    .topbar {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 1.75rem;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }
}

@media print {
    .sidebar,
    .topbar,
    .btn-primary-custom,
    .btn-danger-custom,
    .btn-warning-custom,
    .aksi-group {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-area {
        padding: 0 !important;
    }
}

.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 1.8rem 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    margin: 0 0.4rem;
    height: auto;
    line-height: 1.4;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    border-radius: 6px !important;
    margin: 0 1px !important;
    padding: 0.3rem 0.65rem !important;
    font-size: 0.78rem !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    transition: var(--transition);
    min-width: 28px;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--body-bg) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: var(--text-light) !important;
    cursor: default;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
}

table.dataTable thead th {
    border-bottom: 2px solid var(--border-color) !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_desc::after {
    opacity: 0.3;
}

table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before {
    opacity: 0.8;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-header-info {
    flex: 1;
    min-width: 0;
}

.detail-header-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.15rem 0;
    color: var(--text-primary);
}

.detail-header-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.detail-header-aksi {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.detail-divider {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    padding: 0.6rem 1.25rem;
    background: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 0.75rem 1.25rem;
    gap: 0.85rem;
}

.detail-cell {
    padding: 0;
}

.detail-cell:last-child {
}

.detail-cell.full {
    grid-column: 1 / -1;
}

.detail-cell-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}

.detail-cell-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    margin-left: 0.4rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dataTables_wrapper .dataTables_length select {
    font-size: 0.8rem;
    padding: 0.35rem 1.8rem 0.35rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    margin: 0 0.3rem;
    background-color: #fff;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
    height: auto;
    line-height: 1.4;
}

.dataTables_wrapper .dataTables_length label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.ikon-lihat,
.ikon-edit,
.ikon-hapus {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.ikon-lihat {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 011.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0114.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 011.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zM4.5 8a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 011.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0114.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 011.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zM4.5 8a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0z'/%3E%3C/svg%3E");
}

.ikon-edit {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.854.146a.5.5 0 00-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 000-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 01.5.5v.5h.5a.5.5 0 01.5.5v.5h.5a.5.5 0 01.5.5v.5h.5a.5.5 0 01.5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 016 13.5V13h-.5a.5.5 0 01-.5-.5V12h-.5a.5.5 0 01-.5-.5V11h-.5a.5.5 0 01-.5-.5V10h-.5a.499.499 0 01-.175-.032l-.179.178a.5.5 0 00-.11.168l-2 5a.5.5 0 00.65.65l5-2a.5.5 0 00.168-.11l.178-.178z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.854.146a.5.5 0 00-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 000-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 01.5.5v.5h.5a.5.5 0 01.5.5v.5h.5a.5.5 0 01.5.5v.5h.5a.5.5 0 01.5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 016 13.5V13h-.5a.5.5 0 01-.5-.5V12h-.5a.5.5 0 01-.5-.5V11h-.5a.5.5 0 01-.5-.5V10h-.5a.499.499 0 01-.175-.032l-.179.178a.5.5 0 00-.11.168l-2 5a.5.5 0 00.65.65l5-2a.5.5 0 00.168-.11l.178-.178z'/%3E%3C/svg%3E");
}

.ikon-hapus {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.5 5.5A.5.5 0 016 6v6a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zm2.5 0a.5.5 0 01.5.5v6a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zm3 .5a.5.5 0 00-1 0v6a.5.5 0 001 0V6z'/%3E%3Cpath fill-rule='evenodd' d='M14.5 3a1 1 0 01-1 1H13v9a2 2 0 01-2 2H5a2 2 0 01-2-2V4h-.5a1 1 0 01-1-1V2a1 1 0 011-1H6a1 1 0 011-1h2a1 1 0 011 1h3.5a1 1 0 011 1v1zM4.118 4L4 4.059V13a1 1 0 001 1h6a1 1 0 001-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.5 5.5A.5.5 0 016 6v6a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zm2.5 0a.5.5 0 01.5.5v6a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zm3 .5a.5.5 0 00-1 0v6a.5.5 0 001 0V6z'/%3E%3Cpath fill-rule='evenodd' d='M14.5 3a1 1 0 01-1 1H13v9a2 2 0 01-2 2H5a2 2 0 01-2-2V4h-.5a1 1 0 01-1-1V2a1 1 0 011-1H6a1 1 0 011-1h2a1 1 0 011 1h3.5a1 1 0 011 1v1zM4.118 4L4 4.059V13a1 1 0 001 1h6a1 1 0 001-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z'/%3E%3C/svg%3E");
}
