/* =========================================================================
   PUBLIC/CSS/GATEWAY-RESERVASI.CSS - STYLING PORTAL TERPADU & RESERVASI BKPSDM
   ========================================================================= */

@import url('https://fonts.cdnfonts.com/css/sf-pro-display');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* 1. Tipografi Apple SF Pro Universal SSOT (UI/UX Pro Max) */
html, body, button, input, select, textarea, optgroup {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Inter', -apple-system-subheadline, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    letter-spacing: -0.015em;
}

/* Lindungi glyph FontAwesome agar tidak tertimpa font-family */
.fa, .fas, .far, .fal, .fad, .fab, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* 1b. Apple Tactile Spring Physics */
.btn-apple-spring {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-apple-spring:hover {
    transform: translateY(-1.5px) scale(1.015);
}
.btn-apple-spring:active {
    transform: translateY(1px) scale(0.96);
}

/* 2. Animasi Transisi Halus */
.fade-in { 
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* 3. Latar Belakang Gedung Blur + Emerald Mist khas SITAMI */
.bg-mist-emerald {
    position: relative;
    background-color: #020617;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-mist-emerald::before {
    content: '';
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('../img/Background-Login.jpg'); 
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -2;
    pointer-events: none;
}

.bg-mist-emerald::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to bottom right, rgba(2, 6, 23, 0.76), rgba(4, 120, 87, 0.62));
    z-index: -1;
    pointer-events: none;
}

/* 4. White Frosted Glass Cards (Gaya Pusat Kendali Sistem - Glassmorphism & Soft Neumorphic Emboss) */
.glass-card-white {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 24px 50px -12px rgba(2, 44, 34, 0.22), 
        0 12px 24px -8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.03);
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(4, 120, 87, 0.25), 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.bubble-card {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.74) 100%);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 24px 50px -12px rgba(2, 44, 34, 0.22), 
        0 12px 24px -8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* 4b. Soft Neumorphic Glass Sub-cards (Sub-panel, Ringkasan Sticky & Konselor) */
.neumorphic-subcard {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 12px 28px -6px rgba(2, 44, 34, 0.10),
        0 4px 12px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.95);
}

.neumorphic-inset {
    background: rgba(241, 245, 249, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.85);
}

/* 5. Inset Neumorphic Inputs dengan Living Focus Aura */
.input-inset {
    background-color: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-inset:focus {
    background-color: rgba(255, 255, 255, 0.98);
    border-color: #059669;
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.18),
        0 6px 20px -3px rgba(16, 185, 129, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

/* 6. Dynamic Auto-Expanding Textarea (Zero Ugly Scrollbar) */
textarea#inputKeluhan {
    overflow-y: hidden;
    resize: none;
    transition: height 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 7. Micro-Interactions & Living Animations (UI/UX Pro Max) */
@keyframes bubblePop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-bubble-pop {
    animation: bubblePop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Date Chip Micro-Bounce & Radiant Emerald Halo Glow */
.date-chip {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, box-shadow;
}

.date-chip:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 20px -3px rgba(16, 185, 129, 0.16),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
}

.date-chip.active-selected {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 14px 30px -4px rgba(5, 150, 105, 0.35),
        0 0 0 2px rgba(16, 185, 129, 0.5),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.95);
}

/* Time Chip Micro-Bounce */
.time-chip {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.time-chip:hover:not(.active-selected) {
    transform: translateY(-1.5px) scale(1.02);
}

.time-chip.active-selected {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 20px -3px rgba(5, 150, 105, 0.38),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
}

