/* ==========================================================================
   PAUD KENANGA — BCA MOBILE INSPIRED UI/UX DESIGN SYSTEM (kenanga-ui.css)
   Mobile-First, Clean Corporate Blue, Floating White Cards, Squircle Icons
   ========================================================================== */

:root {
    /* Core BCA-Inspired Blue Palette */
    --bca-navy: #003b73;
    --bca-blue: #005baa;
    --bca-blue-mid: #0072ce;
    --bca-sky: #0093d0;
    --bca-cyan: #38bdf8;
    --bca-ice: #e8f4fd;
    --bca-ice-soft: #f2f8fd;

    /* Semantic Theme Variables (Compatible with legacy variable names) */
    --primary: #005baa;
    --primary-dark: #003b73;
    --primary-light: #e0f2fe;
    --accent: #0093d0;
    --accent-light: #e8f4fd;
    --bg-body: #edf5fc;
    --bg-surface: #ffffff;
    --bg-subtle: #f7fbff;
    --text-main: #0b2545;
    --text-secondary: #334e68;
    --text-muted: #627d98;
    --line: #d5e6f5;
    --line-strong: #b6d4ee;

    /* Status Colors */
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --info: #0284c7;
    --info-bg: #f0f9ff;
    --info-border: #bae6fd;

    /* Elevation & Geometry */
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-pill: 9999px;

    --shadow-xs: 0 2px 6px rgba(0, 59, 115, 0.05);
    --shadow-sm: 0 6px 18px rgba(0, 59, 115, 0.07), 0 2px 6px rgba(0, 59, 115, 0.04);
    --shadow-md: 0 14px 32px rgba(0, 59, 115, 0.10), 0 4px 10px rgba(0, 59, 115, 0.05);
    --shadow-lg: 0 22px 48px rgba(0, 59, 115, 0.15), 0 6px 16px rgba(0, 59, 115, 0.07);
    --shadow-btn: 0 8px 20px rgba(0, 91, 170, 0.25);

    --grad-header: linear-gradient(135deg, #003b73 0%, #005baa 52%, #0088cc 100%);
    --grad-primary: linear-gradient(135deg, #005baa 0%, #0082c8 55%, #00a2e8 100%);
    --grad-sky: linear-gradient(135deg, #0082c8 0%, #29b6f6 100%);
    --grad-surface: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    --grad-icon: linear-gradient(145deg, #ebf6ff 0%, #d4ecff 100%);
    --font-sans: "Plus Jakarta Sans", "DM Sans", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(186, 230, 253, 0.55) 0%, transparent 45%),
        linear-gradient(180deg, #e3f0fc 0%, #eff6fc 42%, #e8f2fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* BCA Mobile Indicator Dot (Lampu Indikator Status) */
.bca-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
}

.bca-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28), 0 0 8px #10b981;
    display: inline-block;
    flex-shrink: 0;
}

.bca-dot.warn {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28), 0 0 8px #f59e0b;
}

.bca-dot.err {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28), 0 0 8px #ef4444;
}

/* Squircle Icon Box */
.bca-squircle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--grad-icon);
    color: var(--bca-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid #cce5ff;
    box-shadow: 0 6px 14px rgba(0, 91, 170, 0.10), inset 0 1px 0 #ffffff;
    flex-shrink: 0;
}

.bca-squircle.solid {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 18px rgba(0, 91, 170, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Floating White Cards */
.bca-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    position: relative;
}

/* Form Controls */
.bca-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bca-input-wrap .input-icon {
    position: absolute;
    left: 15px;
    color: var(--bca-blue-mid);
    font-size: 15px;
    pointer-events: none;
}

.bca-input-wrap .toggle-pass {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.bca-input-wrap .toggle-pass:hover {
    background: var(--bca-ice);
    color: var(--bca-blue);
}

/* Mobile Bottom Nav Dock */
.bca-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(0, 59, 115, 0.08);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bca-bottom-nav a,
.bca-bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 4px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
}

.bca-bottom-nav a i,
.bca-bottom-nav button i {
    font-size: 18px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.bca-bottom-nav a.active,
.bca-bottom-nav button.active,
.bca-bottom-nav a:hover,
.bca-bottom-nav button:hover {
    color: var(--bca-blue) !important;
}

.bca-bottom-nav .nav-qr-center {
    position: relative;
    top: -14px;
    background: var(--grad-primary) !important;
    color: #ffffff !important;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 91, 170, 0.35) !important;
    border: 3px solid #ffffff !important;
}

.bca-bottom-nav .nav-qr-center i {
    font-size: 21px;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .bca-bottom-nav {
        display: flex;
    }
    body.has-bottom-nav {
        padding-bottom: 88px !important;
    }
}
