/* ================================================================
   CSS ULTRA MODERN - RSUD Tarutung
   Desain Dinamis, Soft, Typografi Besar & Jelas
   Efek Glassmorphism, Gradient, Shadow Modern
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Primary Colors - Soft Green */
    --primary: #0d7c3f;
    --primary-dark: #065a2b;
    --primary-light: #2ea86a;
    --primary-soft: #e6f5ec;
    --primary-gradient: linear-gradient(145deg, #0d7c3f, #1a9e5a);
    --primary-gradient-soft: linear-gradient(145deg, #e6f5ec, #c8e6d9);
    --primary-glass: rgba(13, 124, 63, 0.12);

    /* Secondary Colors */
    --secondary: #4caf84;
    --accent: #6366f1;
    --accent-soft: #eef2ff;

    /* Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Text */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --text-soft: #1e293b;

    /* Background */
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --bg-card: #ffffff;

    /* Shadows - Modern */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 16px rgba(13, 124, 63, 0.08);
    --shadow-md: 0 8px 32px rgba(13, 124, 63, 0.12);
    --shadow-lg: 0 16px 48px rgba(13, 124, 63, 0.16);
    --shadow-xl: 0 24px 64px rgba(13, 124, 63, 0.20);
    --shadow-glow: 0 0 40px rgba(13, 124, 63, 0.10);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --space-6: 30px;
    --space-8: 40px;
    --space-10: 52px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   HEADER PUBLIK - Modern Glassmorphism
   ================================================================ */
.header-public {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 var(--space-6);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--glass-shadow);
}

.header-public .brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.header-public .brand .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 16px rgba(13, 124, 63, 0.25);
}

.header-public .brand .text {
    display: flex;
    flex-direction: column;
}

.header-public .brand .text h1 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-public .brand .text h1 span {
    color: var(--primary);
}

.header-public .brand .text small {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.header-public .nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-public .nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.header-public .nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.header-public .nav a.active {
    color: var(--text-white);
    background: var(--primary-gradient);
    box-shadow: 0 4px 20px rgba(13, 124, 63, 0.3);
}

.header-public .nav .btn-login {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(13, 124, 63, 0.3);
}

.header-public .nav .btn-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(13, 124, 63, 0.4);
}

/* ================================================================
   HEADER ADMIN - Modern Glassmorphism
   ================================================================ */
.header-admin {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 var(--space-6);
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--glass-shadow);
}

.header-admin .brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.header-admin .brand .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 16px rgba(13, 124, 63, 0.2);
}

.header-admin .brand .text {
    display: flex;
    flex-direction: column;
}

.header-admin .brand .text h1 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.header-admin .brand .text h1 span {
    color: var(--primary);
}

.header-admin .brand .text small {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-admin .user {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-admin .user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(13, 124, 63, 0.2);
}

.header-admin .user .name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.header-admin .user .logout-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.header-admin .user .logout-btn:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* ================================================================
   SIDEBAR ADMIN - Modern Glassmorphism
   ================================================================ */
.sidebar-admin {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: var(--space-4) 0;
    height: calc(100vh - 76px);
    position: sticky;
    top: 76px;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 2px 0 32px rgba(0, 0, 0, 0.04);
}

.sidebar-admin .menu-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    padding: var(--space-2) var(--space-6) var(--space-1);
    font-weight: 700;
}

.sidebar-admin .menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    position: relative;
    margin: 2px 0;
}

.sidebar-admin .menu-item .icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-admin .menu-item:hover {
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateX(6px);
}

.sidebar-admin .menu-item.active {
    color: var(--text-white);
    background: var(--primary-gradient);
    box-shadow: 0 4px 20px rgba(13, 124, 63, 0.3);
    transform: translateX(0);
}

.sidebar-admin .menu-item.active::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.sidebar-admin .menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-3) var(--space-6);
}

.sidebar-admin .menu-item.logout {
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-2);
    padding-top: var(--space-4);
}

.sidebar-admin .menu-item.logout:hover {
    background: #fef2f2;
    color: var(--danger);
    transform: translateX(6px);
}

/* Scrollbar Sidebar */
.sidebar-admin::-webkit-scrollbar {
    width: 4px;
}

.sidebar-admin::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-admin::-webkit-scrollbar-thumb {
    background: var(--primary-glass);
    border-radius: 4px;
}

/* ================================================================
   LAYOUT ADMIN
   ================================================================ */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 76px);
    background: var(--bg-body);
}

.admin-content {
    flex: 1;
    padding: var(--space-8) var(--space-8);
    background: var(--bg-body);
}

.admin-content .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.admin-content .page-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.admin-content .page-header h2 span {
    color: var(--primary);
}

.admin-content .page-header .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-content .page-header .date {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--bg-white);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
    font-weight: 500;
}

/* ================================================================
   STATISTIK CARDS - Modern & Dinamis
   ================================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 124, 63, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80px;
    height: 80px;
    background: var(--primary-glass);
    border-radius: 50%;
    opacity: 0.3;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.stat-card .number {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.stat-card .icon-bg {
    position: absolute;
    right: var(--space-4);
    top: var(--space-4);
    font-size: 2.6rem;
    opacity: 0.06;
    z-index: 0;
}

/* ================================================================
   TABEL CONTAINER - Modern Card
   ================================================================ */
.table-wrap {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 124, 63, 0.05);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: var(--space-4);
}

.table-wrap:hover {
    box-shadow: var(--shadow-md);
}

.table-wrap .table-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(13, 124, 63, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    background: var(--bg-soft);
}

.table-wrap .table-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.table-wrap .table-header .badge-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 4px var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
    padding: 0 2px;
}

.table-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.table-scroll table thead {
    background: var(--bg-soft);
    border-bottom: 2px solid rgba(13, 124, 63, 0.06);
}

.table-scroll table thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    white-space: nowrap;
}

.table-scroll table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-scroll table tbody tr {
    transition: var(--transition);
}

.table-scroll table tbody tr:hover {
    background: var(--primary-soft);
}

.table-scroll table tbody tr:last-child td {
    border-bottom: none;
}

/* ================================================================
   TABEL JAWABAN - Compact & Rapi
   ================================================================ */
.table-jawaban table {
    font-size: 0.82rem;
    min-width: auto;
}

.table-jawaban table thead th {
    padding: var(--space-2) 8px;
    font-size: 0.6rem;
    text-align: center;
}

.table-jawaban table tbody td {
    padding: var(--space-1) 8px;
    text-align: center;
    font-size: 0.82rem;
}

.table-jawaban table tbody td:first-child {
    text-align: center;
}

.table-jawaban table tbody td:nth-child(2) {
    text-align: left;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.table-jawaban table tbody td:last-child {
    text-align: left;
    white-space: nowrap;
}

.nilai-badge {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
}

.nilai-5 {
    background: #dcfce7;
    color: #166534;
}

.nilai-4 {
    background: #dcfce7;
    color: #166534;
}

.nilai-3 {
    background: #fef3c7;
    color: #92400e;
}

.nilai-2 {
    background: #fee2e2;
    color: #991b1b;
}

.nilai-1 {
    background: #fee2e2;
    color: #991b1b;
}

/* ================================================================
   TABEL RATA-RATA RESPONDEN
   ================================================================ */
.table-rata-responden table {
    font-size: 0.9rem;
    min-width: 500px;
}

.table-rata-responden table thead th {
    padding: var(--space-2) var(--space-3);
    font-size: 0.7rem;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.table-rata-responden table tbody td {
    padding: var(--space-2) var(--space-3);
    text-align: center;
    font-size: 0.9rem;
}

.table-rata-responden table tbody td:first-child {
    text-align: left;
    font-weight: 700;
}

.table-rata-responden table tbody td:first-child .nama-col {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.table-rata-responden table tbody tr:hover {
    background: var(--primary-soft);
}

.table-rata-responden table tbody tr:last-child td {
    border-bottom: none;
}

.rata-badge {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 48px;
}

.rata-tinggi {
    background: #dcfce7;
    color: #166534;
}

.rata-sedang {
    background: #fef3c7;
    color: #92400e;
}

.rata-rendah {
    background: #fee2e2;
    color: #991b1b;
}

/* ================================================================
   BUTTON - Modern & Dinamis
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 16px rgba(13, 124, 63, 0.2);
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px rgba(13, 124, 63, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(13, 124, 63, 0.35);
}

.btn-success {
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

.btn-success:hover {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.35);
}

.btn-danger {
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.btn-danger:hover {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.35);
}

.btn-warning {
    background: linear-gradient(145deg, #f59e0b, #d97706);
}

.btn-warning:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 32px rgba(13, 124, 63, 0.25);
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: none;
}

.btn-soft:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(13, 124, 63, 0.25);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.82rem;
}

.btn-xs {
    padding: var(--space-1) var(--space-3);
    font-size: 0.72rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ================================================================
   FORM - Modern
   ================================================================ */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: var(--space-1);
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-soft);
    font-family: var(--font);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glass);
    background: var(--bg-white);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

select.form-control {
    appearance: none;
}

/* ================================================================
   BADGE - Modern
   ================================================================ */
.badge {
    display: inline-block;
    padding: 4px var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-soft {
    background: #f1f5f9;
    color: #475569;
}

/* ================================================================
   MODAL - Modern
   ================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-8);
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-box .modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1;
}

.modal-box .modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-box .modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-soft);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-5);
}

.modal-box .modal-title span {
    color: var(--primary);
}

/* ================================================================
   HERO / BERANDA - Modern & Dinamis
   ================================================================ */
.hero-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 70px 60px;
    text-align: center;
    color: white;
    margin: var(--space-5) 0 var(--space-6);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(10deg);
    border-radius: 50%;
}

.hero-section .content {
    position: relative;
    z-index: 2;
}

.hero-section .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: var(--space-1) var(--space-5);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
    backdrop-filter: blur(8px);
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: var(--space-3);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-5);
}

.hero-section .btn-hero {
    background: white;
    color: var(--primary);
    padding: var(--space-4) 52px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-section .btn-hero:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ================================================================
   INFO CARDS - Modern
   ================================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 124, 63, 0.05);
    transition: var(--transition);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-card .icon {
    font-size: 2.4rem;
    margin-bottom: var(--space-2);
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
    font-weight: 700;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================================
   FOOTER - Modern
   ================================================================ */
.footer-site {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
    margin-top: 48px;
    border-top: 4px solid var(--primary);
}

.footer-site .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-site .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 24px;
}

.footer-site h4 {
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}

.footer-site h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.footer-site p,
.footer-site li {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-site ul {
    list-style: none;
    padding: 0;
}

.footer-site ul li {
    padding: 4px 0;
}

.footer-site .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* ================================================================
   LOGIN PAGE - Modern
   ================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient-soft);
    padding: 20px;
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-8);
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-box .logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login-box .logo h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 900;
}

.login-box .logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-box .error-msg {
    background: #fee2e2;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: var(--space-4);
    text-align: center;
    font-weight: 600;
}

/* ================================================================
   HASIL EVALUASI CSI - Modern
   ================================================================ */
.csi-result {
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-8);
    color: white;
    margin-bottom: var(--space-6);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.csi-result::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
}

.csi-result .item {
    position: relative;
    z-index: 1;
}

.csi-result .item .value {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.csi-result .item .label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 600;
}

.csi-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.csi-detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(13, 124, 63, 0.06);
    box-shadow: var(--shadow-xs);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.csi-detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.csi-detail-card .dimension {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.csi-detail-card .value {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: var(--space-6) 0 var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-title .badge-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 4px var(--space-3);
    border-radius: var(--radius-full);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .sidebar-admin {
        width: 72px;
        padding: var(--space-3) 0;
    }

    .sidebar-admin .menu-label {
        display: none;
    }

    .sidebar-admin .menu-item {
        padding: var(--space-3);
        justify-content: center;
        border-radius: var(--radius-full);
        margin: 2px var(--space-2);
    }

    .sidebar-admin .menu-item span:not(.icon) {
        display: none;
    }

    .sidebar-admin .menu-item.logout {
        border-top: none;
        margin-top: 0;
        padding-top: var(--space-3);
    }

    .sidebar-admin .menu-item.active::after {
        display: none;
    }

    .sidebar-admin .menu-item:hover {
        transform: translateX(0) scale(1.05);
    }

    .admin-content {
        padding: var(--space-5) var(--space-5);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csi-result {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ================================================================
   PERBAIKAN MOBILE - HEADER, BANNER, CARD
   ================================================================ */

/* Header Mobile */
@media (max-width: 768px) {
    .header-public {
        padding: 0 12px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 4px;
        padding-top: 8px;
        padding-bottom: 8px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg-white);
        border-bottom: 2px solid var(--primary);
    }

    .header-public .brand {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-public .brand .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .header-public .brand .text h1 {
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .header-public .brand .text small {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
    }

    .header-public .nav {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-end;
        flex: 1 1 100%;
    }

    .header-public .nav a {
        font-size: 0.75rem;
        padding: 4px 12px;
        border-radius: 20px;
    }

    .header-public .nav .btn-login {
        padding: 4px 14px;
        font-size: 0.75rem;
    }

    /* Banner - Perbaikan posisi */
    .banner-wrapper {
        margin: 8px 0 16px;
        border-radius: var(--radius-md);
    }

    .banner-wrapper img {
        min-height: 200px;
        height: 200px;
        object-fit: cover;
    }

    .banner-overlay {
        padding: 20px 16px;
    }

    .banner-overlay .badge {
        font-size: 0.6rem;
        padding: 4px 14px;
        margin-bottom: 6px;
    }

    .banner-overlay h1 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    .banner-overlay p {
        font-size: 0.8rem;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .banner-overlay .btn-hero {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    /* Info Cards - Perbaikan */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 12px 0;
    }

    .info-card {
        padding: 16px 18px;
    }

    .info-card .icon {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }

    .info-card h3 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .info-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Container padding */
    .container {
        padding: 0 12px;
    }
}

/* Mobile Extra Small */
@media (max-width: 480px) {
    .header-public {
        padding: 0 8px;
        min-height: 54px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .header-public .brand .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .header-public .brand .text h1 {
        font-size: 0.8rem;
    }

    .header-public .brand .text small {
        font-size: 0.45rem;
    }

    .header-public .nav a {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .header-public .nav .btn-login {
        padding: 3px 12px;
        font-size: 0.65rem;
    }

    .banner-wrapper img {
        min-height: 160px;
        height: 160px;
    }

    .banner-overlay h1 {
        font-size: 1.1rem;
    }

    .banner-overlay p {
        font-size: 0.7rem;
    }

    .banner-overlay .btn-hero {
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .info-card {
        padding: 12px 14px;
    }

    .info-card h3 {
        font-size: 0.85rem;
    }

    .info-card p {
        font-size: 0.78rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .banner-wrapper img {
        min-height: 280px;
    }

    .banner-overlay h1 {
        font-size: 2rem;
    }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.8rem;
}

.text-lg {
    font-size: 1.1rem;
}

.text-xl {
    font-size: 1.3rem;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-5 {
    gap: 5px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

/* ================================================================
   SWEETALERT - Modern
   ================================================================ */
.swal2-popup {
    border-radius: var(--radius-md) !important;
    font-family: var(--font) !important;
    padding: 2.5rem !important;
    box-shadow: var(--shadow-xl) !important;
}

.swal2-confirm {
    background: var(--primary-gradient) !important;
    border-radius: var(--radius-full) !important;
    padding: var(--space-2) var(--space-6) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.swal2-cancel {
    background: var(--danger) !important;
    border-radius: var(--radius-full) !important;
    padding: var(--space-2) var(--space-6) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.swal2-title {
    color: var(--text-dark) !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}