/* ==========================================================================
   Portal Orang Tua — Modern UI Layer 2026 (tampilan saja)
   Dimuat setelah <style> internal wali.php.
   ========================================================================== */

:root {
    --primary: #6a35c4;
    --primary-dark: #5b2d8e;
    --primary-navy: #120d1f;
    --primary-gradient: linear-gradient(135deg, #3b1d66 0%, #6a35c4 55%, #8b5cf6 100%);
    --hero-bg:
        radial-gradient(28rem 20rem at 8% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 60%),
        radial-gradient(24rem 18rem at 96% 100%, rgba(242, 169, 59, 0.35) 0%, transparent 60%),
        linear-gradient(140deg, #6d3fd0 0%, #7c4dd6 50%, #a07cf0 100%);
    --bg-page: #f6f4fb;
    --card-border: rgba(28, 21, 48, 0.08);
    --card-shadow: 0 1px 2px rgba(18, 13, 31, 0.04), 0 10px 28px -12px rgba(42, 20, 70, 0.16);
    --card-shadow-hover: 0 2px 4px rgba(18, 13, 31, 0.05), 0 22px 44px -16px rgba(42, 20, 70, 0.28);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;
    --info: #0ea5e9;
    --p-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
    --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body { background-color: var(--bg-page); }

h1, h2, h3, h4, h5, h6,
.hero-status-title,
.student-name-title,
.auth-main-headline,
.journey-title {
    font-family: var(--p-display);
    letter-spacing: -0.025em;
}

/* Ticker */
.portal-ticker-bar {
    background: linear-gradient(90deg, #6d3fd0 0%, #7c4dd6 50%, #9265e6 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.portal-ticker-badge {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
}

/* Hero */
.portal-hero-section::after {
    background: radial-gradient(circle, rgba(242, 169, 59, 0.25) 0%, transparent 70%) !important;
}
.student-id-card,
.pill-glass {
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}
.student-id-card {
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -20px rgba(0, 0, 0, 0.5) !important;
}
.mobile-action-btn {
    border-radius: 999px !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Cards */
.modern-glass-card {
    border-radius: 26px !important;
    border: 1px solid var(--card-border) !important;
}
.modern-glass-card::before {
    height: 3px !important;
    background: linear-gradient(90deg, #6a35c4 0%, #f2a93b 55%, #38bdf8 100%) !important;
}
.bento-card,
.scan-card-twin {
    border-radius: 22px !important;
    border: 1px solid var(--card-border) !important;
    transition: transform 0.35s var(--p-ease), box-shadow 0.35s var(--p-ease), border-color 0.35s !important;
}
.bento-card:hover,
.scan-card-twin:hover {
    border-color: rgba(124, 77, 214, 0.25) !important;
}
.stat-bento-card,
.weekday-card {
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 1px 2px rgba(18, 13, 31, 0.04);
    transition: transform 0.3s var(--p-ease), box-shadow 0.3s var(--p-ease) !important;
}
.stat-bento-card:hover,
.weekday-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}
.scan-time-display {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Status hero */
.hero-attendance-status {
    border-radius: 22px !important;
    isolation: isolate;
    box-shadow: 0 22px 44px -20px rgba(18, 13, 31, 0.55) !important;
}
.hero-attendance-status::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
    pointer-events: none;
}
.hero-status-icon-box {
    border-radius: 16px !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Segmented tabs */
.nav-segmented {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 1px 2px rgba(18, 13, 31, 0.04), 0 8px 20px -12px rgba(42, 20, 70, 0.2) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 5px !important;
}
.nav-segmented .nav-link { color: #4a4458 !important; font-weight: 600 !important; }
.nav-segmented .nav-link:hover { background: rgba(124, 77, 214, 0.08) !important; color: #2a1446 !important; }
.nav-segmented .nav-link.active {
    background: linear-gradient(135deg, #7c4dd6, #5b2d8e) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -8px rgba(106, 53, 196, 0.75) !important;
}
.nav-segmented .nav-link.active i { color: #fff !important; }

/* Journey stepper */
.journey-stepper-progress { background: linear-gradient(90deg, #6a35c4, #f2a93b) !important; }

/* Telegram CTA */
.telegram-cta-card,
.telegram-active-card {
    border-radius: 24px !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.telegram-cta-card::after,
.telegram-active-card::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Buttons & inputs */
.btn { border-radius: 12px; font-weight: 600; }
.btn.rounded-pill { border-radius: 999px !important; }
.btn-primary {
    background: linear-gradient(135deg, #7c4dd6 0%, #5b2d8e 100%) !important;
    border: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -8px rgba(106, 53, 196, 0.7) !important;
}
.btn-outline-primary {
    color: #6a35c4 !important;
    border-color: rgba(106, 53, 196, 0.35) !important;
}
.btn-outline-primary:hover {
    background: rgba(124, 77, 214, 0.08) !important;
    color: #5b2d8e !important;
}
.form-control,
.form-select { border-radius: 12px; }
.form-control:focus,
.form-select:focus,
.auth-input-field:focus {
    border-color: #7c4dd6 !important;
    box-shadow: 0 0 0 4px rgba(124, 77, 214, 0.16) !important;
}
.modern-dropzone { border-radius: 20px !important; }

/* Modal / SweetAlert */
.modal-content { border-radius: 26px !important; border: 1px solid var(--card-border) !important; overflow: hidden; }
.modal-backdrop.show { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.swal2-popup { border-radius: 24px !important; }
.swal2-title { font-family: var(--p-display) !important; letter-spacing: -0.02em; }
.swal2-styled { border-radius: 12px !important; }

/* Login portal */
.portal-auth-canvas {
    background:
        radial-gradient(34rem 24rem at 8% 10%, rgba(124, 77, 214, 0.42) 0%, transparent 60%),
        radial-gradient(28rem 20rem at 92% 18%, rgba(242, 169, 59, 0.2) 0%, transparent 60%),
        radial-gradient(30rem 22rem at 50% 100%, rgba(56, 189, 248, 0.14) 0%, transparent 60%),
        linear-gradient(140deg, #6d3fd0 0%, #7c4dd6 50%, #a07cf0 100%) !important;
}
.auth-login-card { border-radius: 28px !important; }
.auth-submit-btn {
    background: linear-gradient(135deg, #7c4dd6 0%, #5b2d8e 100%) !important;
    border-radius: 14px !important;
}

@media (prefers-reduced-motion: no-preference) {
    .portal-main-wrapper > * { animation: p-rise 0.55s var(--p-ease) both; }
    .portal-main-wrapper > *:nth-child(2) { animation-delay: 0.05s; }
    .portal-main-wrapper > *:nth-child(3) { animation-delay: 0.1s; }
    .portal-main-wrapper > *:nth-child(n+4) { animation-delay: 0.15s; }
}
@keyframes p-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media print {
    .portal-main-wrapper > * { animation: none !important; }
}

.portal-hero-section {
    border-radius: 0 0 36px 36px;
}
@media (max-width: 575.98px) {
    .portal-hero-section { border-radius: 0 0 28px 28px; }
}

/* v3 — spotlight kursor & detail kaca */
.bento-card,
.scan-card-twin,
.stat-bento-card,
.weekday-card {
    background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(124, 77, 214, 0.08), transparent 42%) !important;
}
.portal-ticker-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 169, 59, 0.6), transparent);
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-attendance-status { background-size: 140% 140% !important; animation: p-drift 14s ease-in-out infinite alternate; }
}
@keyframes p-drift {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}
