/* ==========================================================================
   Disdukcapil Pencatatan Sipil - JUARA DIGITAL Modern Application & Public CSS
   Primary: #123B5D | Secondary: #2563EB | Accent: #F59E0B | Background: #F8FAFC
   ========================================================================== */

:root {
    --primary-color: #123B5D;
    --primary-hover: #0a2339;
    --primary-light: #1e4d77;
    --secondary-color: #2563EB;
    --secondary-hover: #1d4ed8;
    --accent-color: #F59E0B;
    --accent-hover: #d97706;
    --bg-color: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success-color: #16A34A;
    --danger-color: #DC2626;
    --sidebar-width: 280px;
    --topbar-height: clamp(60px, 8vw, 75px);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --hover-shadow: 0 20px 40px rgba(18, 59, 93, 0.12);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fluid Responsive Spacing Tokens */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(0.85rem, 1.5vw, 1.25rem);
    --space-lg: clamp(1.25rem, 2.5vw, 2rem);
    --space-xl: clamp(1.75rem, 4vw, 3rem);
}

html {
    scrollbar-gutter: stable;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

body.modal-open {
    padding-right: 0 !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-body);
    font-size: clamp(0.875rem, 0.25vw + 0.825rem, 1rem);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Fluid Typography System - Otomatis skala dari HP ke Laptop */
h1, .h1 {
    font-size: clamp(1.6rem, 3.5vw + 0.6rem, 2.6rem);
    line-height: 1.25;
}

h2, .h2 {
    font-size: clamp(1.35rem, 2.2vw + 0.5rem, 2.1rem);
    line-height: 1.3;
}

h3, .h3 {
    font-size: clamp(1.18rem, 1.6vw + 0.4rem, 1.65rem);
    line-height: 1.35;
}

h4, .h4 {
    font-size: clamp(1.05rem, 1vw + 0.35rem, 1.35rem);
    line-height: 1.4;
}

h5, .h5 {
    font-size: clamp(0.95rem, 0.6vw + 0.35rem, 1.15rem);
}

h6, .h6 {
    font-size: clamp(0.85rem, 0.4vw + 0.35rem, 1rem);
}

img, svg, video, canvas, audio, iframe {
    max-width: 100%;
    height: auto;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-logo-img-sm {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.gradient-hero {
    position: relative;
    background-color: #06192d !important;
    background: radial-gradient(130% 130% at 50% 0%, #16426a 0%, #0c2b48 40%, #06192d 100%) !important;
    min-height: calc(100vh - 68px);
    width: 100%;
    overflow: hidden;
    color: #FFFFFF !important;
}

/* Juara Digital Hero - Clean Unboxed Institutional Authority Lockup (Symmetrical Center) */
.hero-authority-lockup,
.hero-gov-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 4px;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-authority-lockup:hover,
.hero-gov-badge:hover {
    transform: translateY(-2px);
    background: transparent !important;
}

.hero-authority-emblem,
.hero-gov-logo {
    height: 52px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s ease;
    margin-bottom: 2px;
}

.hero-authority-lockup:hover .hero-authority-emblem,
.hero-gov-badge:hover .hero-gov-logo {
    transform: scale(1.08);
}

.hero-authority-text,
.hero-gov-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.hero-authority-title,
.hero-gov-title {
    font-weight: 800;
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    letter-spacing: 2.4px;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.hero-authority-subtitle,
.hero-gov-subtitle {
    font-weight: 600;
    font-size: clamp(0.68rem, 1.2vw, 0.76rem);
    letter-spacing: 3.2px;
    color: #7dd3fc;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 575.98px) {
    .hero-authority-lockup,
    .hero-gov-badge {
        gap: 4px;
        padding: 2px;
    }
    .hero-authority-emblem,
    .hero-gov-logo {
        height: 42px;
        max-width: 42px;
    }
    .hero-authority-title,
    .hero-gov-title {
        font-size: 0.82rem;
        letter-spacing: 1.6px;
    }
    .hero-authority-subtitle,
    .hero-gov-subtitle {
        font-size: 0.62rem;
        letter-spacing: 2.2px;
    }
}

.gradient-hero .hero-main-title,
.hero-main-title {
    font-size: clamp(2.8rem, 6.5vw, 4.6rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.08;
    color: #FBBF24 !important;
    text-shadow: 
        0 0 22px rgba(251, 191, 36, 0.65),
        0 0 48px rgba(245, 158, 11, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.65);
    margin-bottom: 0.6rem;
    display: inline-block;
    user-select: none;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.hero-main-title:hover {
    transform: scale(1.02);
    text-shadow: 
        0 0 30px rgba(251, 191, 36, 0.85),
        0 0 60px rgba(245, 158, 11, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.7);
}

.hero-sub-headline {
    font-size: clamp(0.85rem, 1.3vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #93c5fd;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 6 Pilar Cards in Hero - Modern 3x2 Glassmorphic Feature Cards */
.pillar-hero-card {
    background: linear-gradient(145deg, rgba(16, 42, 77, 0.72) 0%, rgba(9, 25, 48, 0.82) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    padding: 18px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px -4px rgba(2, 6, 23, 0.45);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pillar-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.6);
    background: linear-gradient(145deg, rgba(22, 54, 98, 0.88) 0%, rgba(13, 34, 65, 0.94) 100%);
    box-shadow: 
        0 14px 32px -4px rgba(2, 6, 23, 0.6),
        0 0 24px rgba(14, 165, 233, 0.22);
}

.pillar-hero-card:hover::before {
    opacity: 1;
}

.pillar-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #38bdf8;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pillar-hero-card:hover .pillar-icon-box {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
    color: #FBBF24;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.pillar-num-tag {
    font-family: 'Inter', -apple-system, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.pillar-hero-card:hover .pillar-num-tag {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
}

.pillar-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    line-height: 1.25;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.pillar-hero-card:hover .pillar-title {
    color: #38bdf8;
}

.pillar-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
    margin: 0;
}

/* Motto Layanan Banner - Compact Symmetrical Glass Ribbon */
.hero-motto-banner {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 42, 77, 0.78) 0%, rgba(9, 25, 48, 0.88) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    padding: 7px 22px 7px 10px;
    box-shadow: 
        0 8px 24px -4px rgba(2, 6, 23, 0.5),
        0 0 16px rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.hero-motto-banner:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(135deg, rgba(22, 54, 98, 0.88) 0%, rgba(13, 34, 65, 0.94) 100%);
    box-shadow: 
        0 12px 30px -4px rgba(2, 6, 23, 0.6),
        0 0 24px rgba(14, 165, 233, 0.22);
    transform: translateY(-2px);
}

.hero-motto-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #FBBF24;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 1.4px;
    padding: 5px 13px;
    border-radius: 50px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-motto-tag i {
    font-size: 0.88rem;
    color: #F59E0B;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.hero-motto-divider {
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.45) 50%, transparent);
    flex-shrink: 0;
}

.hero-motto-text {
    font-weight: 700;
    font-size: clamp(0.85rem, 1.2vw, 0.96rem);
    color: #FFFFFF;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.hero-motto-text .motto-item {
    color: #F8FAFC;
    white-space: nowrap;
}

.motto-dot {
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 900;
    margin: 0 4px;
    opacity: 0.85;
}

@media (max-width: 575.98px) {
    .hero-motto-banner {
        border-radius: 20px;
        padding: 12px 16px;
        gap: 8px !important;
    }
    .hero-motto-text {
        font-size: 0.8rem;
        justify-content: center;
    }
}

.gradient-hero h1:not(.hero-main-title), 
.gradient-hero .display-4,
.gradient-hero .display-5 {
    color: #FFFFFF !important;
}

.gradient-hero p, 
.gradient-hero .lead {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-glow-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.glass-panel {
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: #0F172A !important;
}

.glass-panel h1, .glass-panel h2, .glass-panel h3, .glass-panel h4, .glass-panel h5, .glass-panel h6 {
    color: #0F172A !important;
}

.glass-panel p, .glass-panel span, .glass-panel li {
    color: #334155 !important;
}

.glass-dark {
    background: rgba(18, 59, 93, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
}

.navbar-public {
    background: #123B5D !important;
    padding: 0.75rem 0;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-public .public-navbar-brand {
    margin-left: 0;
    padding-left: 0;
    margin-right: clamp(1rem, 2.5vw, 3rem);
}

.navbar-public .brand-title-text {
    font-size: clamp(0.88rem, 1.15vw, 1.05rem);
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: #FFFFFF;
}

.nav-link-centered {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600;
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.nav-link-centered i {
    font-size: 1.15rem !important;
    margin-bottom: 1px;
}

.nav-link-centered:hover,
.nav-link-centered.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-centered.active i {
    color: var(--accent-color) !important;
}

.btn-nav-auth {
    min-width: 88px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    padding: 0 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.feature-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw + 0.5rem, 2rem) clamp(1.15rem, 1.5vw + 0.3rem, 1.75rem);
    transition: var(--transition-fast);
    box-shadow: var(--card-shadow);
    height: 100%;
    color: var(--text-body) !important;
}

.feature-card h5, .feature-card h6 {
    color: #0F172A !important;
}

.feature-card p {
    color: #475569 !important;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

/* Service Card Public with Equal Height & Fluid Dimension Enforcement */
.service-card-public {
    background: #FFFFFF !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw + 0.5rem, 1.75rem) clamp(1.15rem, 1.5vw + 0.3rem, 1.5rem);
    transition: var(--transition-fast);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text-body) !important;
}

.service-card-public .service-title-box {
    min-height: auto;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.service-card-public h5, .service-card-public h6 {
    color: #0F172A !important;
    line-height: 1.35;
}

.service-card-public p {
    color: #475569 !important;
}

.service-card-public::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card-public:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(37, 99, 235, 0.4);
}

.service-card-public:hover::before {
    opacity: 1;
}

.icon-box-primary {
    width: clamp(46px, 5vw, 58px);
    height: clamp(46px, 5vw, 58px);
    min-width: clamp(46px, 5vw, 58px);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.icon-box-accent {
    width: clamp(46px, 5vw, 58px);
    height: clamp(46px, 5vw, 58px);
    min-width: clamp(46px, 5vw, 58px);
    border-radius: 14px;
    background: linear-gradient(135deg, #F59E0B, #d97706);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
}

.step-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw + 0.5rem, 1.75rem) clamp(1.15rem, 1.5vw + 0.3rem, 1.5rem);
    position: relative;
    transition: var(--transition-fast);
    box-shadow: var(--card-shadow);
    height: 100%;
    color: var(--text-body) !important;
}

.step-card h6 {
    color: #0F172A !important;
}

.step-card p {
    color: #475569 !important;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.step-number-badge {
    width: clamp(38px, 4vw, 44px);
    height: clamp(38px, 4vw, 44px);
    border-radius: 12px;
    background: var(--primary-color) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(18, 59, 93, 0.25);
}

.stat-counter-card {
    background: #FFFFFF !important;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
}

.stat-counter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-counter-card .stat-label {
    color: #0F172A !important;
    font-weight: 700;
}

.stat-counter-card .stat-desc {
    color: #64748B !important;
}

.btn-accent {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.btn-accent:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    transition: var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d2a43 0%, #123B5D 100%);
    color: var(--white);
    transition: var(--transition-fast);
    z-index: 1000;
    min-height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Tombol Tutup Sidebar Mobile: Tersembunyi di Desktop, Hanya Muncul di Layar HP/Tablet */
.btn-close-sidebar {
    display: none !important;
}

@media (max-width: 991.98px) {
    .btn-close-sidebar {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        color: #ffffff !important;
        padding: 4px 6px !important;
        font-size: 1.35rem !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: opacity 0.15s ease;
    }

    .btn-close-sidebar:hover,
    .btn-close-sidebar:focus,
    .btn-close-sidebar:active {
        background: transparent !important;
        box-shadow: none !important;
        opacity: 0.75 !important;
        color: #ffffff !important;
    }
}

#content {
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.sidebar-user-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 1.25rem 0.5rem 1.25rem;
}

.sidebar-user-card .avatar-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

#sidebar ul.components {
    padding: 0.75rem 0.75rem;
    flex-grow: 1;
}

#sidebar .nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    padding: 0.75rem 0.75rem 0.4rem 0.75rem;
}

#sidebar ul li {
    margin-bottom: 0.35rem;
}

#sidebar ul li a {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-weight: 600;
}

#sidebar ul li a .nav-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar ul li a i {
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

#sidebar ul li a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

#sidebar ul li a.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

#sidebar ul li a.active i {
    color: #FFFFFF;
}

#sidebar ul li a.sidebar-logout-item {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#sidebar ul li a.sidebar-logout-item:hover {
    color: #FFFFFF;
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.4);
}

.navbar-custom {
    min-height: 62px;
    height: 62px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    flex-wrap: nowrap !important;
    position: sticky;
    top: 0;
    z-index: 1020;
}

#navNotificationBtn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.navbar-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 3px 6px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.navbar-user-badge:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

@media (min-width: 992px) {
    .navbar-custom {
        min-height: var(--topbar-height);
        height: var(--topbar-height);
        padding: 0.75rem 2rem;
    }

    .navbar-user-badge {
        padding: 6px 14px 6px 6px;
        gap: 10px;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(18, 59, 93, 0.25);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.toast-container {
    z-index: 9999;
}

/* ==========================================================================
   FILTER & SEARCH BAR DESIGN SYSTEM
   ========================================================================== */
.filter-search-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.filter-input-box {
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    height: 38px;
    min-height: 38px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    overflow: hidden;
    transition: var(--transition-fast);
    padding: 0;
    position: relative;
}

.filter-input-box:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-input-box .input-group-text:first-child {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.4rem;
    font-size: 0.95rem;
}

.filter-input-box .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 0.84rem;
    color: #0f172a;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    display: block;
    outline: none;
}

.filter-input-box a.input-group-text,
.filter-input-box .input-group-text:last-child:not(:first-child) {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--danger-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.25rem;
    padding-right: 0.65rem;
    cursor: pointer;
}

.filter-select-box {
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    height: 38px;
    min-height: 38px;
    font-size: 0.82rem;
    color: #0f172a;
    background-color: #ffffff;
    padding: 0.35rem 1.6rem 0.35rem 0.65rem;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
}

.filter-select-box:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   UNIFIED LIVE SEARCH BOX COMPONENT (PELAYANAN, SPTJM, ETC)
   ========================================================================== */
.search-box-wrapper {
    min-width: 0;
    max-width: 420px;
    width: 100%;
}

.search-bar-unified {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: var(--transition-fast);
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.search-bar-unified:focus-within {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.search-bar-unified .input-group-text:first-child {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: var(--primary-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0.85rem !important;
    padding-right: 0.4rem !important;
    font-size: 1rem !important;
}

.search-bar-unified .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    color: #0f172a !important;
    padding: 0.35rem 0.5rem 0.35rem 0.25rem !important;
    display: block !important;
    outline: none !important;
}

.search-bar-unified button,
.search-bar-unified .btn-clear-search {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0.25rem !important;
    padding-right: 0.85rem !important;
    cursor: pointer !important;
}

.search-bar-unified button:hover,
.search-bar-unified .btn-clear-search:hover {
    color: #ef4444 !important;
}

/* ==========================================================================
   AUTHENTICATION PAGES (Login & Registration)
   ========================================================================== */
.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #091e31 0%, #123B5D 60%, #1a4970 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 390px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-header {
    background: linear-gradient(135deg, #091e31 0%, #123B5D 100%);
    color: #FFFFFF;
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}

.auth-header img {
    height: 40px !important;
}

.auth-header h3 {
    font-size: 1.2rem !important;
}

.auth-header div {
    font-size: 0.8rem !important;
}

.auth-header h5 {
    font-size: 0.9rem !important;
    margin-top: 0.35rem !important;
}

.auth-body {
    padding: 1.25rem 1.5rem !important;
}

.auth-body .form-label {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
}

.auth-body .form-control {
    font-size: 0.875rem !important;
    padding: 0.42rem 0.65rem !important;
    min-height: 38px !important;
    height: 38px !important;
}

.auth-body .input-group-text {
    font-size: 0.9rem !important;
    padding: 0.42rem 0.65rem !important;
    min-height: 38px !important;
    height: 38px !important;
}

.auth-body .password-toggle-btn {
    font-size: 0.85rem !important;
    padding: 0.42rem 0.65rem !important;
    min-height: 38px !important;
    height: 38px !important;
}

.auth-body .form-text {
    font-size: 0.75rem !important;
    margin-top: 0.2rem !important;
}

.auth-body .btn-primary-custom {
    padding: 0.55rem 1rem !important;
    font-size: 0.92rem !important;
    min-height: 40px !important;
    border-radius: 8px !important;
}

.auth-body .btn-outline-secondary {
    font-size: 0.82rem !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 8px !important;
}

.auth-body .alert {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    border-radius: 8px !important;
}

.auth-body .alert i {
    font-size: 0.95rem !important;
    margin-right: 0.45rem !important;
}

.required-star {
    color: var(--danger-color);
    font-weight: bold;
}

/* ==========================================================================
   INPUT GROUP UNIVERSAL HORIZONTAL ROW (Strict Icon on Left + Input on Right)
   ========================================================================== */
.input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative;
}

.input-group > .input-group-text {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: auto !important;
}

.input-group > .form-control,
.input-group > .form-select {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 1% !important;
}

.input-group > .password-toggle-btn,
.input-group > .btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   FORM STEPPER & CARDS UI
   ========================================================================== */
.section-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.3px;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    line-height: 1.35;
}

.form-section-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem !important;
}

.form-section-card .card-header {
    padding: 1.5rem 1.75rem 0.5rem 1.75rem !important;
    background: transparent !important;
}

.form-section-card .card-body {
    padding: 1.25rem 1.75rem 2rem 1.75rem !important;
}

.form-header-card {
    background: linear-gradient(135deg, #071727 0%, #123B5D 50%, #1e5280 100%) !important;
    padding: 2rem !important;
    color: #FFFFFF !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(18, 59, 93, 0.2) !important;
}

.form-wizard-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    transition: var(--transition-fast);
}

/* ==========================================================================
   HORIZONTAL STEPPER / PROGRESS INDICATOR (REBUILT REUSABLE COMPONENT)
   ========================================================================== */
.stepper-horizontal-container {
    position: relative;
    width: 100%;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0 10px;
}

.stepper-track-line {
    position: absolute;
    top: 42px; /* Centered with circle height */
    left: var(--stepper-offset, 10%);
    right: var(--stepper-offset, 10%);
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    z-index: 1;
    border-radius: 2px;
}

.stepper-track-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #16A34A 0%, #2563EB 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-steps-list {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stepper-steps-list::-webkit-scrollbar {
    display: none;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* REAL CIRCLE UI COMPONENT - SOLID OPAQUE SO LINE PASSES BEHIND */
.stepper-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: #0d1b2a !important; /* Solid fully opaque dark background */
    border: 3px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 4;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* STEP NAME BELOW CIRCLE */
.stepper-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    margin-top: 2px;
    white-space: normal;
    max-width: 125px;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* 1. ACTIVE STEP STATE */
.stepper-step.active .stepper-circle {
    background: #2563EB !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 0 20px #3b82f6 !important;
    transform: scale(1.12);
    z-index: 6;
}

.stepper-step.active .stepper-name {
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 0.82rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
}

/* 2. COMPLETED STEP STATE */
.stepper-step.completed .stepper-circle {
    background: #16A34A !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3), 0 0 15px rgba(22, 163, 74, 0.85) !important;
    z-index: 5;
}

.stepper-step.completed .stepper-name {
    color: #4ade80 !important;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* 3. UPCOMING STEP STATE */
.stepper-step.upcoming .stepper-circle {
    background: #0d1b2a !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    z-index: 4;
}

.stepper-step.upcoming .stepper-name {
    color: rgba(255, 255, 255, 0.6) !important;
}

.dropzone-area {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 2.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone-area:hover,
.dropzone-area.dragover {
    border-color: var(--secondary-color);
    background: #eff6ff;
}

.dropzone-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Footer Link & Contact Card Animations */
.link-hover-warning {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-hover-warning:hover {
    color: #f59e0b !important;
    transform: translateX(4px);
}
.hover-scale {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.hover-scale:hover {
    transform: translateY(-2px) scale(1.03);
}
.footer-contact-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-contact-card:hover {
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45) !important;
}

/* ==========================================================================
   SIDEBAR BACKDROP OVERLAY (MOBILE DRAWER)
   ========================================================================== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.sidebar-open {
    overflow: hidden !important;
}

/* ==========================================================================
   GLOBAL OVERFLOW & VIEWPORT GUARD (Mencegah Layar Meluber ke Samping di HP/Tablet)
   ========================================================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

#wrapper, 
#content, 
.container-fluid, 
.main-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   1. TABLE RESPONSIVE WRAPPER (Smooth Independent Horizontal Scrolling)
   ========================================================================== */
.table-responsive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    border-radius: 12px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.table-responsive .table {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   2. DESKTOP VIEWPORT (@media (min-width: 992px))
   ========================================================================== */
@media (min-width: 992px) {
    #wrapper {
        display: flex !important;
        width: 100% !important;
        align-items: stretch !important;
        min-height: 100vh !important;
    }

    #sidebar {
        min-width: var(--sidebar-width) !important;
        max-width: var(--sidebar-width) !important;
        width: var(--sidebar-width) !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: calc(100% - var(--sidebar-width)) !important;
    }

    .navbar-custom {
        min-height: var(--topbar-height);
        height: var(--topbar-height);
        padding: 0.75rem 2rem;
    }

    .navbar-user-badge {
        padding: 6px 14px 6px 6px;
        gap: 10px;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .btn-close-sidebar {
        display: none !important;
    }
}

/* ==========================================================================
   3. TABLET VIEWPORT (@media (min-width: 768px) and (max-width: 991.98px))
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    #wrapper {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        overflow-x: hidden !important;
    }

    #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
        width: 300px !important;
        max-width: 80vw !important;
        z-index: 1050 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
        box-shadow: none !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #sidebar.show {
        transform: translateX(0) !important;
        visibility: visible !important;
        box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5) !important;
    }

    #content {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        flex: 1 1 100% !important;
    }

    .container-fluid {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .navbar-custom {
        padding: 0.65rem 1.25rem !important;
        min-height: 64px !important;
    }

    /* Public Navbar on Tablet */
    .navbar-public .navbar-collapse {
        background: #0d2840 !important;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1.25rem 1.25rem !important;
        margin-top: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .nav-link-centered {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        text-align: left !important;
    }

    .navbar-public-auth {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        display: flex !important;
        gap: 0.75rem !important;
    }

    .navbar-public-auth .btn-nav-auth {
        flex: 1 1 0% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Tablet Card Spacings */
    .card-body {
        padding: 1.5rem !important;
    }

    .form-section-card {
        margin-bottom: 1.25rem !important;
    }
}

/* ==========================================================================
   4. MOBILE SMARTPHONE VIEWPORT (@media (max-width: 767.98px))
   ========================================================================== */
@media (max-width: 767.98px) {
    /* 4.1. Layout & Container Guard */
    #wrapper {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        overflow-x: hidden !important;
    }

    #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
        width: 285px !important;
        max-width: 85vw !important;
        z-index: 1050 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
        box-shadow: none !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #sidebar.show {
        transform: translateX(0) !important;
        visibility: visible !important;
        box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5) !important;
    }

    #content {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        flex: 1 1 100% !important;
    }

    .container-fluid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* 4.2. Topbar Navigation */
    .navbar-custom {
        padding: 0.5rem 0.85rem !important;
        min-height: 58px !important;
        height: auto !important;
    }

    .navbar-user-badge {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 50% !important;
        width: 34px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navbar-user-badge .user-avatar,
    .navbar-user-badge img {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        font-size: 0.85rem !important;
    }

    /* 4.3. Public Navbar Collapse & Mobile Brand/Toggler Alignment */
    .navbar-public {
        padding: 0.5rem 0 !important;
    }

    .navbar-public > .container-fluid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .navbar-public .public-navbar-brand {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        max-width: calc(100% - 48px) !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .navbar-public .brand-logo-img {
        height: 32px !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .navbar-public .brand-title-text {
        font-size: clamp(0.72rem, 3.2vw, 0.90rem) !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .navbar-public .navbar-toggler {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        padding: 0.35rem 0.5rem !important;
        width: 40px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navbar-public .navbar-collapse {
        background: #0d2840 !important;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-radius: 14px;
        padding: 1rem 0.85rem !important;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    }

    .nav-link-centered {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0.65rem 0.85rem !important;
        font-size: 0.9rem !important;
        text-align: left !important;
        border-radius: 8px !important;
    }

    .nav-link-centered i {
        font-size: 1.15rem !important;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

    .navbar-public-auth {
        width: 100% !important;
        margin: 0.85rem 0 0 0 !important;
        padding: 0.85rem 0 0 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        display: flex !important;
        gap: 0.5rem !important;
    }

    .navbar-public-auth .btn-nav-auth {
        flex: 1 1 0% !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.5rem !important;
    }

    /* 4.4. Formulir & Card Stacking (1 Kolom Penuh w-100) */
    .form-step-container .row > [class*="col-"]:not(.keep-col),
    .form-section-card .row > [class*="col-"]:not(.keep-col),
    .card-body form:not(.filter-search-form) .row > [class*="col-"]:not(.keep-col),
    form:not(.filter-search-form) .row:not(.no-stack-mobile) > [class*="col-"]:not(.col-xs-6):not(.keep-col) {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.65rem;
    }

    .card {
        border-radius: 14px !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .card-header {
        padding: 0.85rem 1rem !important;
    }

    .card-footer {
        padding: 0.85rem 1rem !important;
    }

    .form-header-card {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .form-header-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    .form-header-badges .badge,
    .header-step-status-badge,
    #headerStepStatus,
    #headerSptjmStepStatus {
        font-size: 0.78rem !important;
        padding: 0.35rem 0.65rem !important;
        white-space: normal !important;
        text-align: left !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        max-width: 100% !important;
        display: inline-block !important;
    }

    .form-service-heading,
    .form-header-card h2,
    .form-header-card h3 {
        font-size: 1.35rem !important;
        line-height: 1.28 !important;
        word-break: break-word !important;
        margin-top: 0.35rem !important;
        margin-bottom: 0.35rem !important;
    }

    .form-service-desc,
    .form-header-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .form-header-btn-wrap,
    .form-header-actions {
        width: 100% !important;
        margin-top: 0.25rem !important;
    }

    .form-header-btn-wrap .btn,
    .form-header-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .form-section-card {
        margin-bottom: 1rem !important;
        border-radius: 14px !important;
        padding: 0 !important;
    }

    .form-section-card .card-header {
        padding: 0.85rem 1rem !important;
    }

    .form-section-card .card-body {
        padding: 1rem !important;
    }

    .section-title-badge {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }

    /* 4.5. Auth Pages (Login & Register) */
    .auth-bg {
        padding: 1.5rem 1rem !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .auth-card {
        margin: 0.5rem auto !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 16px !important;
    }

    .auth-card-wide {
        max-width: 100% !important;
    }

    .auth-header {
        padding: 1.15rem 1rem !important;
    }

    .auth-body {
        padding: 1.15rem 1rem !important;
    }

    /* 4.6. Touch Targets & Form Inputs */
    .form-control, 
    .form-select, 
    .btn {
        min-height: 44px;
        font-size: 16px !important; /* Mencegah auto-zoom pada iOS Safari */
    }

    /* Input Group Horizontal Row Guard */
    .input-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .input-group > .input-group-text {
        flex: 0 0 auto !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem 0.75rem !important;
    }

    .input-group > .form-control,
    .input-group > .form-select {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 1% !important;
    }

    .input-group > .btn:not(.btn-clear-search):not(.password-toggle-btn) {
        flex: 0 0 auto !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 4.7. Tombol Aksi (Action Buttons) Full Width & Vertical Stacking */
    .form-wizard-action-bar,
    .card-action-bar,
    .btn-mobile-stack {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        width: 100% !important;
        padding: 0.75rem 0 !important;
    }

    .form-wizard-action-bar .btn:not(.d-none),
    .form-wizard-action-bar > div:not(.d-none) > .btn:not(.d-none),
    .btn-mobile-full:not(.d-none) {
        width: 100% !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        font-size: 0.92rem !important;
    }

    /* Modal Footer Sejajar Horizontal di Kanan & Rapi */
    .modal-footer {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.65rem !important;
        padding: 0.75rem 1rem !important;
        width: 100% !important;
    }

    .modal-footer .btn,
    .modal-footer > div,
    .modal-footer > div > .btn,
    .modal-footer > div > a {
        width: auto !important;
        min-height: 38px !important;
        font-size: 0.85rem !important;
        padding: 0.45rem 1rem !important;
        white-space: nowrap !important;
    }

    .form-wizard-action-bar > div:not(.d-none) {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .hero-cta-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.65rem !important;
    }

    .hero-cta-group .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 44px !important;
    }

    /* Penyesuaian Khusus Mobile: Tombol Unduh & Pratinjau Dokumen Final */
    .final-doc-btn-group {
        display: inline-flex !important;
        align-items: stretch !important;
        vertical-align: middle !important;
        border-radius: 7px !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    .final-doc-btn-group .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 0 !important;
        font-size: 0.85rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .final-doc-btn-group .btn:first-child {
        border-top-left-radius: 6px !important;
        border-bottom-left-radius: 6px !important;
    }

    .final-doc-btn-group .btn:last-child {
        border-top-right-radius: 6px !important;
        border-bottom-right-radius: 6px !important;
    }

    .final-doc-btn-group .btn i {
        font-size: 0.88rem !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-footer .btn-unduh-dokumen-final {
        width: 100% !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 4.8. Stepper / Progress Bar */
    .stepper-horizontal-container {
        padding: 0.85rem 0.4rem 0.65rem 0.4rem !important;
        margin: 0.75rem 0 !important;
        border-radius: 12px !important;
    }

    .stepper-track-line {
        top: 30px !important;
        left: var(--stepper-offset, 10%) !important;
        right: var(--stepper-offset, 10%) !important;
        height: 3px !important;
    }

    .stepper-step {
        min-width: 42px !important;
        padding: 0 2px !important;
    }

    .stepper-circle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 0.82rem !important;
        border-width: 2px !important;
        margin-bottom: 4px !important;
    }

    .stepper-name {
        font-size: 0.64rem !important;
        line-height: 1.15 !important;
        max-width: 65px !important;
    }

    /* 4.9. Search & Filter Boxes */
    .search-box-wrapper {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .search-bar-unified {
        height: 42px !important;
        min-height: 42px !important;
    }

    .filter-input-box {
        height: 40px !important;
        min-height: 40px !important;
    }

    .filter-select-box {
        height: 40px !important;
        min-height: 40px !important;
    }

    /* 4.10. Modals & Dialogs */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }

    /* Toast Container */
    .toast-container {
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
    }
}

/* ==========================================================================
   5. EXTRA SMALL PHONES (@media (max-width: 575.98px))
   ========================================================================== */
@media (max-width: 575.98px) {
    .brand-title-text {
        font-size: 1rem !important;
    }

    .brand-logo-img {
        height: 32px !important;
    }

    .brand-logo-img-sm {
        height: 28px !important;
    }

    .feature-card, 
    .service-card-public, 
    .step-card {
        padding: 1.15rem 1rem !important;
    }

    .stat-counter-card {
        padding: 1rem 0.75rem !important;
    }

    .stat-counter-number {
        font-size: 1.6rem !important;
    }

    .hero-glow-blob {
        width: 180px !important;
        height: 180px !important;
        top: -30px !important;
        right: -30px !important;
    }
}

/* ==========================================================================
   Aesthetic SweetAlert2 Custom Styling
   ========================================================================== */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-backdrop-show {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    background: rgba(15, 23, 42, 0.65) !important;
}

.custom-swal-popup {
    border-radius: 20px !important;
    padding: 2rem 1.75rem !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    border: none !important;
}

.custom-swal-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}

.custom-swal-html {
    font-size: 0.95rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

.custom-swal-html b, .custom-swal-html strong {
    color: #0f172a !important;
    font-weight: 600 !important;
}

.custom-swal-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
}

.custom-swal-confirm-btn {
    border-radius: 50px !important;
    padding: 0.65rem 1.4rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
    border: none !important;
    box-sizing: border-box !important;
}

.custom-swal-confirm-btn i {
    flex-shrink: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

.custom-swal-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
}

.custom-swal-cancel-btn {
    border-radius: 50px !important;
    padding: 0.65rem 1.4rem !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
}

.custom-swal-cancel-btn i {
    flex-shrink: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

.custom-swal-cancel-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

@media (max-width: 576px) {
    .custom-swal-popup {
        width: 94% !important;
        max-width: 380px !important;
        padding: 1.5rem 1rem !important;
        border-radius: 18px !important;
    }
    .custom-swal-title {
        font-size: 1.18rem !important;
    }
    .custom-swal-html {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
    }
    .custom-swal-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 1.2rem !important;
    }
    .custom-swal-cancel-btn {
        flex: 0 0 auto !important;
        min-width: 75px !important;
        padding: 0.55rem 0.85rem !important;
        font-size: 0.82rem !important;
        border-radius: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .custom-swal-confirm-btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0.55rem 0.85rem !important;
        font-size: 0.82rem !important;
        border-radius: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .custom-swal-confirm-btn i,
    .custom-swal-cancel-btn i {
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* Strictly hide buttons during loading state or when hidden */
.custom-swal-actions-hidden,
.swal2-popup.swal2-loading .custom-swal-confirm-btn,
.swal2-popup.swal2-loading .custom-swal-cancel-btn,
.swal2-popup.swal2-loading .swal2-confirm,
.swal2-popup.swal2-loading .swal2-cancel,
.swal2-popup.custom-swal-loading .swal2-actions,
.swal2-popup.custom-swal-loading .custom-swal-actions,
.swal2-popup.aesthetic-loading-popup .swal2-actions,
.swal2-popup.aesthetic-loading-popup .custom-swal-actions,
.swal2-popup [style*="display: none"],
.swal2-popup button[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   AESTHETIC ANIMATED LOADING MODAL (LOGIN & LOGOUT)
   ========================================================================== */
.swal2-popup.aesthetic-loading-popup {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 2.2rem 1.8rem 2rem 1.8rem !important;
    box-shadow: 0 25px 50px -12px rgba(18, 59, 93, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9) !important;
    max-width: 380px !important;
    width: 90% !important;
    overflow: hidden !important;
    position: relative !important;
    border: none !important;
}

.aesthetic-loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Glowing Dual-Ring Orbit Spinner with Pulsing Center Icon */
.aesthetic-spinner-box {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aesthetic-spinner-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid transparent;
    border-top-color: #123B5D;
    border-right-color: #2563EB;
    animation: aestheticSpin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.4));
}

.aesthetic-spinner-ring-inner {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #06b6d4;
    border-left-color: #3b82f6;
    animation: aestheticSpinReverse 0.85s linear infinite;
}

.aesthetic-spinner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(18, 59, 93, 0.22);
    animation: aestheticPulse 1.8s ease-in-out infinite;
    z-index: 2;
    padding: 6px;
    border: 2px solid #f1f5f9;
}

.aesthetic-spinner-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.aesthetic-loading-title {
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.45rem !important;
    letter-spacing: -0.2px !important;
}

.aesthetic-loading-desc {
    font-size: 0.86rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
    max-width: 290px !important;
}

/* Shimmer Progress Track */
.aesthetic-progress-track {
    width: 100%;
    max-width: 240px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.aesthetic-progress-bar {
    height: 100%;
    width: 50%;
    border-radius: 10px;
    background: linear-gradient(90deg, #123B5D, #2563EB, #06b6d4, #2563EB);
    background-size: 200% 100%;
    animation: aestheticProgressMove 1.4s ease-in-out infinite alternate;
}

/* Keyframes */
@keyframes aestheticSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes aestheticSpinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes aestheticPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45); }
}

@keyframes aestheticProgressMove {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(150%); }
}

/* Mobile Responsive Popups: Action buttons strictly side-by-side (sejajar) on mobile */
@media (max-width: 576px) {
    .custom-swal-popup {
        width: 92% !important;
        max-width: 380px !important;
        padding: 1.5rem 1rem !important;
        border-radius: 18px !important;
        margin: 0 auto !important;
    }

    .custom-swal-title {
        font-size: 1.15rem !important;
    }

    .custom-swal-html {
        font-size: 0.84rem !important;
        line-height: 1.5 !important;
        margin-top: 0.35rem !important;
        margin-bottom: 1.15rem !important;
    }

    .custom-swal-actions:not(.custom-swal-actions-hidden):not([style*="display: none"]) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 1rem !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .custom-swal-confirm-btn:not([style*="display: none"]),
    .custom-swal-cancel-btn:not([style*="display: none"]) {
        flex: 1 1 0 !important;
        width: 50% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0.55rem 0.4rem !important;
        font-size: 0.78rem !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        border-radius: 50px !important;
        box-sizing: border-box !important;
        height: 38px !important;
        min-height: 38px !important;
    }

    .custom-swal-confirm-btn i,
    .custom-swal-cancel-btn i {
        font-size: 0.8rem !important;
        margin-right: 3px !important;
    }
}

/* ==========================================================================
   DATE PICKER INPUT RESPONSIVENESS (MOBILE & DESKTOP)
   ========================================================================== */
input[type="date"],
input[type="date"].form-control,
input[type="date"].form-control-sm {
    color: #0f172a !important;
    background-color: #ffffff !important;
    min-height: 31px;
    font-size: 0.82rem !important;
    font-weight: 500;
}

input[type="date"]::-webkit-date-and-time-value {
    text-align: left !important;
    line-height: normal !important;
    min-height: 1.25em !important;
    color: #0f172a !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    opacity: 0.65 !important;
    padding: 2px !important;
    margin-left: 2px !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
}

/* Ensure step/number badges with rounded-circle are perfectly round (not oval/lonjong) */
.badge.rounded-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    text-align: center !important;
    aspect-ratio: 1 / 1 !important;
}

/* ==========================================================================
   PASSWORD TOGGLE BUTTON STYLES (Clean In-Field Floating Toggle)
   ========================================================================== */
.input-group:has(.password-toggle-btn) {
    position: relative;
}

.input-group > .form-control:has(~ .password-toggle-btn),
.input-group > input[type="password"] {
    padding-right: 42px !important;
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

.password-toggle-btn,
.input-group > .password-toggle-btn,
.auth-body .password-toggle-btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #64748b !important;
    z-index: 25 !important;
    cursor: pointer !important;
    padding: 0 !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    transition: color 0.2s ease-in-out !important;
    pointer-events: auto !important;
}

.password-toggle-btn i,
.input-group > .password-toggle-btn i {
    pointer-events: none !important;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus,
.password-toggle-btn:active,
.input-group > .password-toggle-btn:hover,
.input-group > .password-toggle-btn:focus {
    color: var(--primary-color, #2563eb) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Prevent Bootstrap validation checkmark/cross icons from overlapping the eye button */
.input-group:has(.password-toggle-btn) .form-control.is-valid,
.input-group:has(.password-toggle-btn) .form-control.is-invalid,
.input-group > .form-control.is-valid:has(~ .password-toggle-btn),
.input-group > .form-control.is-invalid:has(~ .password-toggle-btn),
.form-control.input-reset-pwd.is-valid,
.form-control.input-reset-pwd.is-invalid,
#addUserPassword.is-valid,
#addUserPassword.is-invalid,
#new_password.is-valid,
#new_password.is-invalid,
#confirm_password.is-valid,
#confirm_password.is-invalid,
#password.is-valid,
#password.is-invalid {
    background-image: none !important;
}

/* ==========================================================================
   KHUSUS MOBILE: Posisi Icon Mata Password Beri Jarak ~2 Spasi dari Ujung Kanan Box
   ========================================================================== */
@media (max-width: 767.98px) {
    .password-toggle-btn,
    .input-group > .password-toggle-btn,
    .auth-body .password-toggle-btn {
        right: 8px !important;
        width: 36px !important;
    }

    .input-group > .form-control:has(~ .password-toggle-btn),
    .input-group > input[type="password"] {
        padding-right: 48px !important;
    }
}

/* ==========================================================================
   Modern Unified Key-Value Detail List Styling (Modal Detail & Rekap)
   ========================================================================== */
.detail-item-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}
.detail-item-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    font-size: 0.86rem;
    line-height: 1.5;
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
    width: 100% !important;
}
.detail-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.detail-item-label {
    width: 210px !important;
    min-width: 140px !important;
    max-width: 260px !important;
    flex-shrink: 0 !important;
    color: #475569;
    font-weight: 500;
    font-size: 0.84rem;
}
.detail-item-colon {
    width: 14px !important;
    min-width: 14px !important;
    flex-shrink: 0 !important;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    margin-right: 8px;
}
.detail-item-value {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #0f172a;
    font-weight: 400;
    font-size: 0.86rem;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .detail-item-row {
        font-size: 0.82rem;
    }
    .detail-item-label {
        width: 140px !important;
        min-width: 115px !important;
        font-size: 0.80rem;
    }
    .detail-item-value {
        font-size: 0.82rem;
    }
}

/* Utility Gap Helper */
.gap-1\.5 {
    gap: 0.375rem !important;
}

/* ============================================================
   DOKUMEN PENDUKUNG & INPUT GROUP VALIDATION AESTHETICS (SPTJM)
   ============================================================ */
.doc-pendukung-row {
    position: relative;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
.doc-pendukung-row .doc-num-label {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    font-weight: 700;
    font-size: 0.88rem;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    min-width: 44px;
    justify-content: center;
    transition: all 0.2s ease;
}
.doc-pendukung-row .doc-pendukung-input {
    border-color: #cbd5e1;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.doc-pendukung-row .doc-pendukung-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.doc-pendukung-row .btn-hapus-doc {
    border-color: #cbd5e1;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    transition: all 0.2s ease;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}
.doc-pendukung-row .btn-hapus-doc:hover:not(:disabled) {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Invalid State for Doc Pendukung Row */
.doc-pendukung-row.has-error,
.doc-pendukung-row:has(.is-invalid) {
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4);
}
.doc-pendukung-row.has-error .doc-num-label,
.doc-pendukung-row:has(.is-invalid) .doc-num-label {
    background-color: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}
.doc-pendukung-row.has-error .doc-pendukung-input,
.doc-pendukung-row:has(.is-invalid) .doc-pendukung-input {
    border-color: #dc2626 !important;
}
.doc-pendukung-row.has-error .btn-hapus-doc,
.doc-pendukung-row:has(.is-invalid) .btn-hapus-doc {
    border-color: #dc2626 !important;
}

/* Step Error Feedback */
.step-error-msg {
    color: #dc2626 !important;
    font-size: 0.81rem;
    margin-top: 5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    width: 100%;
}
.step-error-msg i {
    font-size: 0.95rem;
    color: #dc2626;
    flex-shrink: 0;
}
.step-error-msg strong {
    font-weight: 700;
    color: #b91c1c;
}
