/* =========================================================
   SIMETRA - Tema warna identik KPU (merah - emas - putih)
   ========================================================= */
:root {
    --kpu-red: #B22026;
    --kpu-red-dark: #7A1015;
    --kpu-red-darker: #4D0A0D;
    --kpu-gold: #D4A017;
    --kpu-gold-light: #F0C64B;
    --kpu-white: #FFFFFF;
    --kpu-gray: #FAF8F5;
    --kpu-text: #2B2B2B;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--kpu-text);
    background-color: var(--kpu-gray);
}

input,
textarea,
select,
button {
    font-family: 'Poppins', sans-serif;
}

::placeholder,
.form-control::placeholder,
.auth-form-control::placeholder {
    font-family: 'Poppins', sans-serif !important;
    color: #94A3B8;
}

.btn-outline-light {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
    color: #2E0507 !important;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

a {
    text-decoration: none;
}

/* ===== Navbar ===== */
.kpu-navbar {
    background: linear-gradient(90deg, #3A0609 0%, #7E1218 50%, #5E0C11 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    border-bottom: 2px solid rgba(212, 160, 23, 0.4);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.kpu-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.22s ease;
    margin: 0 2px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.kpu-navbar .nav-link:hover {
    color: #FFE58F;
    background: rgba(255, 255, 255, 0.1);
}

.kpu-navbar .nav-link.active {
    color: #FFE58F !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kpu-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #F0C64B, #FFDF73);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(240, 198, 75, 0.9);
}

@media (max-width: 991.98px) {
    .kpu-navbar .nav-link.active::after {
        display: none;
    }

    .kpu-navbar .nav-link.active {
        border-left: 4px solid #F0C64B;
        border-radius: 0 0.5rem 0.5rem 0;
        padding-left: 1rem !important;
        background: rgba(255, 255, 255, 0.18);
    }
}

.kpu-logo-badge {
    background: linear-gradient(135deg, #F0C64B, #D4A017);
    color: var(--kpu-red-darker);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.navbar-brand {
    color: #fff !important;
}

/* ===== Buttons ===== */
.btn-kpu-red,
.btn-kpu {
    background-color: var(--kpu-red);
    border-color: var(--kpu-red);
    color: #fff;
}

.btn-kpu-red:hover,
.btn-kpu:hover {
    background-color: var(--kpu-red-dark);
    border-color: var(--kpu-red-dark);
    color: #fff;
}

.btn-kpu-gold {
    background: linear-gradient(135deg, #F5CF63 0%, #D4A017 100%);
    border-color: #D4A017;
    color: #4D0A0D;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35);
    transition: all 0.25s ease;
}

.btn-kpu-gold:hover {
    background: linear-gradient(135deg, #FFDF7A 0%, #E0AE20 100%);
    color: #380709;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.45);
}

/* ===== Hero Modern ===== */
.kpu-hero {
    background: linear-gradient(145deg, #2E0507 0%, #5E0C11 40%, #87131A 75%, #A81B24 100%);
    color: #fff;
    padding: 85px 0 115px;
    position: relative;
    overflow: hidden;
}

.hero-glow-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, rgba(212, 160, 23, 0) 70%);
    top: -100px;
    right: -80px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(240, 198, 75, 0.4);
    backdrop-filter: blur(8px);
    color: #FFE58F;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
}

/* ===== Modern Feature Cards (Prominent, High-Quality & Dynamic) ===== */
.feature-card-modern {
    background: #FFFFFF;
    border-radius: 1.35rem;
    padding: 2rem 1.5rem 1.8rem;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.feature-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.feature-card-modern.theme-red {
    border-color: rgba(178, 32, 38, 0.18);
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 30%);
}

.feature-card-modern.theme-red::before {
    background: linear-gradient(90deg, #B22026, #E11D48);
}

.feature-card-modern.theme-red:hover {
    box-shadow: 0 18px 40px rgba(178, 32, 38, 0.15);
    border-color: #B22026;
}

.feature-card-modern.theme-gold {
    border-color: rgba(217, 119, 6, 0.22);
    background: linear-gradient(180deg, #FEF9EE 0%, #FFFFFF 30%);
}

.feature-card-modern.theme-gold::before {
    background: linear-gradient(90deg, #D4A017, #F59E0B);
}

.feature-card-modern.theme-gold:hover {
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.15);
    border-color: #D4A017;
}

.feature-card-modern.theme-blue {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 30%);
}

.feature-card-modern.theme-blue::before {
    background: linear-gradient(90deg, #1D4ED8, #3B82F6);
}

.feature-card-modern.theme-blue:hover {
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.15);
    border-color: #2563EB;
}

.feature-card-modern.theme-green {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 30%);
}

.feature-card-modern.theme-green::before {
    background: linear-gradient(90deg, #059669, #10B981);
}

.feature-card-modern.theme-green:hover {
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.15);
    border-color: #10B981;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
}

.feature-card-modern:hover::before {
    height: 7px;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.15rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card-modern:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(4deg);
}

.feature-icon-wrapper.red {
    background: linear-gradient(135deg, #B22026 0%, #E11D48 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(178, 32, 38, 0.28);
}

.feature-icon-wrapper.gold {
    background: linear-gradient(135deg, #D4A017 0%, #F59E0B 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.32);
}

.feature-icon-wrapper.blue {
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.feature-icon-wrapper.green {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}

/* ===== Step Cards (Tahapan Magang) ===== */
.step-card-modern {
    background: #FFFFFF;
    border-radius: 1.35rem;
    padding: 2rem 1.4rem 1.75rem;
    position: relative;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.step-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.step-card-modern.theme-red {
    border-color: rgba(178, 32, 38, 0.18);
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 30%);
}

.step-card-modern.theme-red::before {
    background: linear-gradient(90deg, #B22026, #E11D48);
}

.step-card-modern.theme-red:hover {
    box-shadow: 0 18px 40px rgba(178, 32, 38, 0.15);
    border-color: #B22026;
}

.step-card-modern.theme-gold {
    border-color: rgba(217, 119, 6, 0.22);
    background: linear-gradient(180deg, #FEF9EE 0%, #FFFFFF 30%);
}

.step-card-modern.theme-gold::before {
    background: linear-gradient(90deg, #D4A017, #F59E0B);
}

.step-card-modern.theme-gold:hover {
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.15);
    border-color: #D4A017;
}

.step-card-modern.theme-blue {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 30%);
}

.step-card-modern.theme-blue::before {
    background: linear-gradient(90deg, #1D4ED8, #3B82F6);
}

.step-card-modern.theme-blue:hover {
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.15);
    border-color: #2563EB;
}

.step-card-modern.theme-green {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 30%);
}

.step-card-modern.theme-green::before {
    background: linear-gradient(90deg, #059669, #10B981);
}

.step-card-modern.theme-green:hover {
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.15);
    border-color: #10B981;
}

.step-card-modern:hover {
    transform: translateY(-8px);
}

.step-card-modern:hover::before {
    height: 7px;
}

.step-number-badge {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    color: #FFF;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.15rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.step-card-modern:hover .step-number-badge {
    transform: scale(1.1) rotate(5deg);
}

.step-number-badge.red {
    background: linear-gradient(135deg, #B22026, #E11D48);
    box-shadow: 0 8px 20px rgba(178, 32, 38, 0.3);
}

.step-number-badge.gold {
    background: linear-gradient(135deg, #D4A017, #F59E0B);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.32);
}

.step-number-badge.blue {
    background: linear-gradient(135deg, #1D4ED8, #3B82F6);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.step-number-badge.green {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ===== Division Cards ===== */
.division-card-modern {
    background: #FFFFFF;
    border-radius: 1.35rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.division-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.division-card-modern.theme-red {
    border-color: rgba(178, 32, 38, 0.18);
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 30%);
}

.division-card-modern.theme-red::before {
    background: linear-gradient(90deg, #B22026, #E11D48);
}

.division-card-modern.theme-red:hover {
    box-shadow: 0 18px 40px rgba(178, 32, 38, 0.15);
    border-color: #B22026;
}

.division-card-modern.theme-gold {
    border-color: rgba(217, 119, 6, 0.22);
    background: linear-gradient(180deg, #FEF9EE 0%, #FFFFFF 30%);
}

.division-card-modern.theme-gold::before {
    background: linear-gradient(90deg, #D4A017, #F59E0B);
}

.division-card-modern.theme-gold:hover {
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.15);
    border-color: #D4A017;
}

.division-card-modern.theme-blue {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 30%);
}

.division-card-modern.theme-blue::before {
    background: linear-gradient(90deg, #1D4ED8, #3B82F6);
}

.division-card-modern.theme-blue:hover {
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.15);
    border-color: #2563EB;
}

.division-card-modern.theme-green {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 30%);
}

.division-card-modern.theme-green::before {
    background: linear-gradient(90deg, #059669, #10B981);
}

.division-card-modern.theme-green:hover {
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.15);
    border-color: #10B981;
}

.division-card-modern:hover {
    transform: translateY(-8px);
}

.division-card-modern:hover::before {
    height: 7px;
}

/* ===== News Cards ===== */
.news-card-modern {
    background: #FFFFFF;
    border-radius: 1.35rem;
    overflow: hidden;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid rgba(178, 32, 38, 0.15);
    background: linear-gradient(180deg, #FFF9F9 0%, #FFFFFF 25%);
}

.news-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #B22026, #D4A017);
    transition: height 0.3s ease;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(178, 32, 38, 0.15);
    border-color: #B22026;
}

.news-card-modern:hover::before {
    height: 7px;
}

/* ===== Cards ===== */
.card-kpu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    overflow: hidden;
}

.card-kpu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.stat-card {
    border-radius: 1rem;
    color: #fff;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--kpu-red) 0%, var(--kpu-red-dark) 100%);
    box-shadow: 0 4px 15px rgba(178, 32, 38, 0.2);
}

.stat-card.gold {
    background: linear-gradient(135deg, var(--kpu-gold) 0%, #b3820f 100%);
    color: var(--kpu-red-darker);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.2);
}

.stat-card.dark {
    background: linear-gradient(135deg, #333 0%, #111 100%);
}

/* ===== Sidebar (dashboard) ===== */
.kpu-sidebar {
    background: linear-gradient(180deg, var(--kpu-red-darker) 0%, var(--kpu-red-dark) 100%);
    min-height: 100vh;
    color: #fff;
}

.kpu-sidebar .nav-link {
    color: rgba(255, 255, 255, .85);
    border-radius: .5rem;
    padding: .65rem .95rem;
    margin-bottom: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.kpu-sidebar .nav-link.active,
.kpu-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .14);
    color: var(--kpu-gold-light);
}

.kpu-sidebar .sidebar-brand {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

/* ===== Modern Table Styling ===== */
.card-kpu .table> :not(caption)>*>* {
    padding: 0.95rem 1.15rem;
    vertical-align: middle;
}

.card-kpu .table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #64748B;
    background-color: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.card-kpu .table tbody tr {
    transition: background-color 0.18s ease;
}

.card-kpu .table tbody tr:hover {
    background-color: #FBFDFE;
}

/* ===== Badges ===== */
.badge-kpu {
    background-color: rgba(178, 32, 38, 0.1);
    color: var(--kpu-red);
    border: 1px solid rgba(178, 32, 38, 0.25);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 50rem;
}

.badge-gold {
    background-color: rgba(212, 160, 23, 0.15);
    color: #8C6207;
    border: 1px solid rgba(212, 160, 23, 0.3);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 50rem;
}

/* ===== Empty State Helper ===== */
.empty-state-card {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* ===== Auth pages ===== */
.auth-wrapper {
    min-height: 100vh;
    background: #FAF7F2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--kpu-red-darker), var(--kpu-red), var(--kpu-gold));
}

.modern-auth-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    box-shadow: 0 12px 40px rgba(77, 10, 13, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #F0ECE4;
    max-width: 440px;
    width: 100%;
    padding: 2.5rem 2.25rem;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .modern-auth-card {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }
}

.auth-title {
    font-family: 'Poppins', serif, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.92rem;
    color: #6B7280;
    line-height: 1.5;
}

/* Role Selector Pill Group */
.role-pill-group {
    background: #EFEBE4;
    border-radius: 1rem;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 1.5rem;
}

.role-pill-btn {
    border: none;
    background: transparent;
    border-radius: 0.8rem;
    padding: 10px 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    text-align: center;
}

.role-pill-btn .role-icon-box {
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.role-pill-btn:hover {
    color: #111111;
}

.role-pill-btn:hover .role-icon-box {
    transform: scale(1.1);
}

.role-pill-btn.active {
    background: #FFFFFF;
    color: var(--kpu-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.role-pill-btn.active .role-icon-box {
    transform: scale(1.08);
}

/* Custom Auth Inputs */
.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8C98A4;
    font-size: 1.1rem;
    pointer-events: none;
}

.auth-form-control.with-icon {
    padding-left: 2.5rem;
}

.auth-form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.4rem;
    display: block;
}

.auth-form-control {
    background-color: #FAF8F5;
    border: 1.5px solid #E6DFD5;
    border-radius: 0.85rem;
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
    color: #1A202C;
    transition: all 0.2s ease;
}

.auth-form-control:focus {
    background-color: #FFFFFF;
    border-color: var(--kpu-red);
    box-shadow: 0 0 0 4px rgba(178, 32, 38, 0.12);
    outline: none;
}

.auth-form-control::placeholder {
    color: #A0AEC0;
    font-size: 0.9rem;
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8C98A4;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--kpu-red);
}

/* Submit Button */
.btn-auth-submit {
    background: linear-gradient(180deg, #9C1B2B 0%, #821422 100%);
    border: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.85rem;
    width: 100%;
    box-shadow: 0 4px 14px rgba(156, 27, 43, 0.28);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover {
    background: linear-gradient(180deg, #821422 0%, #680E1A 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(156, 27, 43, 0.38);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* Quick Fill Demo Chips */
.demo-role-hint {
    background: #F8F5EE;
    border: 1px dashed #DDD4C6;
    border-radius: 0.6rem;
    padding: 6px 10px;
    font-size: 0.76rem;
    color: #665C4F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.demo-fill-link {
    color: var(--kpu-red);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.demo-fill-link:hover {
    color: var(--kpu-red-darker);
}

.auth-footer-text {
    font-size: 0.82rem;
    color: #718096;
    text-align: center;
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.auth-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.auth-brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--kpu-red-dark), var(--kpu-red));
    color: #FFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(178, 32, 38, 0.25);
}

.kpu-footer {
    background: var(--kpu-red-darker);
    color: rgba(255, 255, 255, .75);
}

.kpu-footer a {
    color: rgba(255, 255, 255, .75);
}

.kpu-footer a:hover {
    color: var(--kpu-gold-light);
}

/* ==========================================================================
   ULTRA-MODERN DASHBOARD DESIGN SYSTEM (SIMETRA KPU)
   ========================================================================== */

body.dashboard-body {
    background-color: #F4F6FB;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2D3748;
    height: 100vh;
    overflow: hidden;
}

/* Dashboard App Layout Wrapper */
.dashboard-layout-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* --- Sidebar Styling --- */
.kpu-sidebar {
    background: linear-gradient(180deg, #50070F 0%, #380309 50%, #200104 100%);
    height: 100vh;
    width: 265px;
    min-width: 265px;
    max-width: 265px;
    flex-shrink: 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1045;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kpu-sidebar::-webkit-scrollbar {
    display: none;
}

/* Dashboard Main Content Area */
.dashboard-main-content {
    flex: 1 1 0%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpu-sidebar .sidebar-brand {
    padding: 1.1rem 1.15rem 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #D4A017 0%, #F59E0B 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #380309;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.35);
    flex-shrink: 0;
}

.sidebar-heading {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    padding: 0.65rem 0.85rem 0.25rem 0.85rem;
    margin: 0;
}

.kpu-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 0.65rem;
    margin-bottom: 0.18rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.kpu-sidebar .nav-link i {
    font-size: 1.05rem;
    width: 24px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.kpu-sidebar .nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.kpu-sidebar .nav-link:hover i {
    transform: scale(1.08);
    color: #FFE082;
}

.kpu-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(212, 160, 23, 0.22) 0%, rgba(212, 160, 23, 0.06) 100%);
    color: #FFF2A8;
    font-weight: 600;
    border-left: 3px solid #F59E0B;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.kpu-sidebar .nav-link.active i {
    color: #F59E0B;
    opacity: 1;
}

/* Sidebar User Info Chip */
.sidebar-user-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    padding: 0.75rem;
    margin-top: auto;
}

/* --- Topbar Styling --- */
.dashboard-topbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
    min-height: 66px;
    padding: 0.75rem 1.5rem;
    z-index: 1020;
}

.user-avatar-pill {
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    padding: 4px 12px 4px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar-pill:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B22026, #7B0E17);
    color: #FFF;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Banner in Dashboards --- */
.dashboard-hero-banner {
    background: linear-gradient(135deg, #660C15 0%, #8C1320 50%, #A81B28 100%);
    border-radius: 1.25rem;
    padding: 1.85rem 2rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 12, 21, 0.22);
    margin-bottom: 1.75rem;
}

.dashboard-hero-banner::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-hero-banner::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-pill-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FFE58F;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- KPI Metric Cards --- */
.kpi-card {
    background: #FFFFFF;
    border-radius: 1.15rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.035);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kpi-card.theme-red .kpi-icon-box {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
}

.kpi-card.theme-gold .kpi-icon-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #D97706;
}

.kpi-card.theme-blue .kpi-icon-box {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #2563EB;
}

.kpi-card.theme-emerald .kpi-icon-box {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
}

.kpi-card.theme-purple .kpi-icon-box {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    color: #7C3AED;
}

.kpi-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.15;
    font-family: 'Poppins', sans-serif;
}

.kpi-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
}

.kpi-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}

.kpi-trend.trend-up {
    background: #ECFDF5;
    color: #059669;
}

.kpi-trend.trend-warning {
    background: #FFFBEB;
    color: #D97706;
}

.kpi-trend.trend-info {
    background: #EFF6FF;
    color: #2563EB;
}

/* --- Modern Card Containers --- */
.card-kpu-modern {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.15rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-kpu-modern .card-header-modern {
    background: #FFFFFF;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-modern {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Quick Action Tiles */
.quick-action-tile {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.9rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.22s ease;
}

.quick-action-tile:hover {
    background: #FFFFFF;
    border-color: #B22026;
    color: #B22026;
    box-shadow: 0 6px 16px rgba(178, 32, 38, 0.08);
    transform: translateY(-2px);
}

.quick-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Timeline & Feed styling */
.timeline-activity-item {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1.25rem;
    border-left: 2px solid #E2E8F0;
}

.timeline-activity-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #B22026;
    border: 2px solid #FFF;
    box-shadow: 0 0 0 2px rgba(178, 32, 38, 0.2);
}

.timeline-dot.dot-success {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.timeline-dot.dot-warning {
    background: #F59E0B;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.timeline-dot.dot-blue {
    background: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Universal Document Paper Viewer */
.doc-paper-wrapper {
    background-color: #f1f5f9;
    min-height: 75vh;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.doc-paper-container {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    min-height: 600px;
    padding: 3rem 3.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .doc-paper-container {
        padding: 1.5rem 1.25rem;
    }
}

.doc-rendered-html h1,
.doc-rendered-html h2,
.doc-rendered-html h3,
.doc-rendered-html h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-rendered-html h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.doc-rendered-html h2 {
    font-size: 1.3rem;
}

.doc-rendered-html h3 {
    font-size: 1.15rem;
}

.doc-rendered-html p {
    margin-bottom: 1.1rem;
    text-align: justify;
}

.doc-rendered-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.doc-rendered-html table td,
.doc-rendered-html table th {
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
}

.doc-rendered-html table th {
    background: #f8fafc;
    font-weight: 600;
}

.doc-rendered-html ul,
.doc-rendered-html ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.doc-rendered-html li {
    margin-bottom: 0.35rem;
}

.doc-rendered-html img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}