/**
 * SKJ General Administration - Neo-Glassmorphism Aurora Glow Hero Engine
 * Theme: Unified Signature Royal Purple Theme (Compact Streamlined Edition)
 * Specialized for: .page-header.premium-animate, .hero-aurora, .page-header-premium, .page-header
 * Version: 3.2.0
 * Author: Antigravity
 */

:root {
    /* Unified Signature Royal Purple Gradients */
    --aurora-purple: linear-gradient(135deg, #4338ca 0%, #6366f1 35%, #696cff 60%, #7c3aed 85%, #9333ea 100%);
    --aurora-purple-glow: rgba(105, 108, 255, 0.36);
    --aurora-purple-orb1: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    --aurora-purple-orb2: radial-gradient(circle, rgba(216, 180, 254, 0.4) 0%, rgba(192, 132, 252, 0.1) 50%, transparent 70%);
}

/* ============================================================
   1. SIGNATURE HERO CONTAINER (COMPACT STREAMLINED ROYAL PURPLE)
   ============================================================ */
.page-header.premium-animate,
.hero-aurora,
.page-header-premium,
.hero-box,
.page-header,
body .page-header,
body .page-header-premium,
body .page-header.premium-animate,
body.module-booking .page-header.premium-animate,
body.module-carbooking .page-header.premium-animate,
body.module-car .page-header.premium-animate,
body.module-repair .page-header.premium-animate,
body.module-foodreport .page-header.premium-animate,
body.module-equipment .page-header.premium-animate,
body.module-locationroom .page-header.premium-animate,
body.module-admin .page-header.premium-animate,
body.module-adminhome .page-header.premium-animate,
body.module-rloes .page-header.premium-animate {
    position: relative !important;
    background: var(--aurora-purple) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 1.15rem 1.75rem !important;
    margin-bottom: 1.15rem !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 12px 35px -8px var(--aurora-purple-glow), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
    animation: auroraEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes auroraEntrance {
    0% { opacity: 0; transform: translateY(14px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ambient Floating Glowing Orbs (Hardware-Accelerated) */
.page-header.premium-animate::before,
.hero-aurora::before,
.page-header-premium::before,
.hero-box::before,
.page-header::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: 5% !important;
    width: 320px !important;
    height: 320px !important;
    border-radius: 50% !important;
    background: var(--aurora-purple-orb1) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: auroraGlowShift 14s ease-in-out infinite alternate !important;
}

.page-header.premium-animate::after,
.hero-aurora::after,
.page-header-premium::after,
.hero-box::after,
.page-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: -50% !important;
    left: 8% !important;
    width: 280px !important;
    height: 280px !important;
    border-radius: 50% !important;
    background: var(--aurora-purple-orb2) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: auroraGlowShift 18s ease-in-out infinite alternate-reverse !important;
}

@keyframes auroraGlowShift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(25px, 15px, 0) scale(1.08); }
    100% { transform: translate3d(-20px, -10px, 0) scale(0.94); }
}

/* Ensure inner content sits above glowing orbs */
.page-header.premium-animate > *,
.hero-aurora > *,
.page-header-premium > *,
.hero-box > *,
.page-header > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Clean up old layout artifacts from legacy headers */
.page-header-premium .header-accent {
    display: none !important;
}

/* ============================================================
   2. INTERNAL MICRO-COMPONENTS & BREADCRUMB GLASS CAPSULE
   ============================================================ */
/* Glass Breadcrumb Capsule Container (Single Pill with Perfect Center Alignment) */
.page-header.premium-animate .header-content .d-flex.align-items-center.mb-2,
.page-header.premium-animate .header-content .d-flex.align-items-center.mb-1,
.page-header.premium-animate .header-content > div > .d-flex.align-items-center.mb-2,
.page-header.premium-animate .header-content > div > .d-flex.align-items-center.mb-1,
.page-header.premium-animate .header-left .d-flex.align-items-center.mb-2,
.page-header.premium-animate .header-left .d-flex.align-items-center.mb-1,
.hero-badge-glass {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    vertical-align: middle !important;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 50px !important;
    padding: 0.22rem 0.85rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 0.35rem !important;
    width: auto !important;
    line-height: 1 !important;
    height: auto !important;
}

/* Reset inner nav element so it NEVER creates a nested double pill */
.page-header.premium-animate .d-flex.align-items-center.mb-2 nav,
.page-header.premium-animate .d-flex.align-items-center.mb-1 nav,
.page-header.premium-animate .header-content nav,
.page-header.premium-animate .header-left nav {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    height: auto !important;
    vertical-align: middle !important;
}

/* Standalone nav capsule (only when NOT nested in .d-flex) */
.page-header:not(.premium-animate) nav[aria-label="breadcrumb"] {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 50px !important;
    padding: 0.22rem 0.85rem !important;
    line-height: 1 !important;
}

/* Luminous Glowing Icon inside Breadcrumb Capsule: Perfectly Centered on Exact Baseline */
.page-header.premium-animate .header-content .d-flex.align-items-center.mb-2 > i,
.page-header.premium-animate .header-content .d-flex.align-items-center.mb-1 > i,
.page-header.premium-animate .header-content > div > .d-flex.align-items-center.mb-2 > i,
.page-header.premium-animate .header-left .d-flex.align-items-center.mb-2 > i,
.page-header.premium-animate .header-left .d-flex.align-items-center.mb-1 > i,
.hero-badge-glass i {
    font-size: 1rem !important;
    color: #fde047 !important; /* Luminous warm gold accent icon */
    margin: 0 0.35rem 0 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    height: 1rem !important;
    width: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.6)) !important;
}

/* Breadcrumb list: strictly centered flex */
.page-header.premium-animate .breadcrumb,
.page-header .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    height: auto !important;
}

/* Breadcrumb items: strictly centered flex on identical vertical axis */
.page-header.premium-animate .breadcrumb-item,
.page-header.premium-animate .breadcrumb-item a,
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.page-header.premium-animate .breadcrumb-item.active,
.page-header .breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.page-header.premium-animate .breadcrumb-item + .breadcrumb-item::before,
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45) !important;
    padding: 0 0.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Live Pulsing Dot */
.hero-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80, 0 0 3px #4ade80;
    display: inline-block;
    margin-right: 0.35rem;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Compact Typography inside Hero */
.page-header.premium-animate h2,
.page-header.premium-animate h3,
.page-header h2,
.page-header h4,
.page-header-premium h2,
.hero-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.38rem !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 0.15rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    line-height: 1.25 !important;
}

.page-header.premium-animate p,
.page-header p,
.page-header-premium p,
.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.16) !important;
    font-weight: 400 !important;
}

/* ============================================================
   3. COMPACT GLASS & WHITE HERO ACTION BUTTONS
   ============================================================ */
.page-header.premium-animate .btn-white,
.page-header.premium-animate .btn-primary,
.page-header .btn-light,
.btn-hero-white {
    background: #ffffff !important;
    color: #4f46e5 !important; /* Rich Indigo/Purple brand color text */
    border: none !important;
    border-radius: 50px !important;
    padding: 0.42rem 1.15rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    height: 38px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
    transition: all 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
}

.page-header.premium-animate .btn-white:hover,
.page-header.premium-animate .btn-primary:hover,
.page-header .btn-light:hover,
.btn-hero-white:hover {
    background: #fdfdfd !important;
    color: #4338ca !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

.page-header.premium-animate .btn-white:active,
.page-header.premium-animate .btn-primary:active,
.btn-hero-white:active {
    transform: scale(0.97) !important;
}

.page-header.premium-animate .btn-outline-light,
.page-header .btn-outline-light,
.btn-hero-glass {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.42rem 1.1rem !important;
    font-size: 0.84rem !important;
    height: 38px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.24s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
}

.page-header.premium-animate .btn-outline-light:hover,
.page-header .btn-outline-light:hover,
.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
}

/* ============================================================
   4. RESPONSIVE MOBILE ADAPTATION (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
    .page-header.premium-animate,
    .hero-aurora,
    .page-header-premium,
    .hero-box,
    .page-header {
        padding: 0.95rem 1rem !important;
        border-radius: 16px !important;
        margin-bottom: 0.95rem !important;
    }

    .page-header.premium-animate::before,
    .hero-aurora::before,
    .page-header-premium::before,
    .hero-box::before,
    .page-header::before {
        width: 180px !important;
        height: 180px !important;
        top: -30% !important;
        right: -10% !important;
    }

    .page-header.premium-animate::after,
    .hero-aurora::after,
    .page-header-premium::after,
    .hero-box::after,
    .page-header::after {
        width: 150px !important;
        height: 150px !important;
        bottom: -25% !important;
        left: -5% !important;
    }

    .page-header.premium-animate h2,
    .page-header.premium-animate h3,
    .page-header h2,
    .page-header h4,
    .page-header-premium h2,
    .hero-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.15rem !important;
    }

    .page-header.premium-animate p,
    .page-header p,
    .page-header-premium p,
    .hero-subtitle {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }

    .page-header.premium-animate .header-content .d-flex.align-items-center.mb-2,
    .page-header.premium-animate .header-content .d-flex.align-items-center.mb-1,
    .page-header.premium-animate .header-content > div > .d-flex.align-items-center.mb-2,
    .page-header.premium-animate .header-content > div > .d-flex.align-items-center.mb-1,
    .page-header.premium-animate .header-left .d-flex.align-items-center.mb-2,
    .page-header.premium-animate .header-left .d-flex.align-items-center.mb-1,
    .page-header.premium-animate nav[aria-label="breadcrumb"],
    .page-header nav[aria-label="breadcrumb"],
    .hero-badge-glass {
        padding: 0.2rem 0.65rem !important;
        font-size: 0.74rem !important;
        margin-bottom: 0.35rem !important;
    }

    /* Mobile Action Controls: 2-Column Responsive Grid on Mobile */
    .page-header.premium-animate .header-actions,
    .page-header.premium-animate .header-content .header-actions,
    .hero-aurora .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 0.65rem !important;
    }

    .page-header.premium-animate .btn-white,
    .page-header.premium-animate .btn-primary,
    .page-header.premium-animate .btn-outline-light,
    .page-header .btn-light,
    .page-header .btn-outline-light,
    .btn-hero-glass,
    .btn-hero-white {
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 0 !important;
        padding: 0.38rem 0.5rem !important;
        font-size: 0.78rem !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 50px !important;
        touch-action: manipulation;
    }

    .page-header.premium-animate .btn-white i,
    .page-header.premium-animate .btn-primary i,
    .page-header.premium-animate .btn-outline-light i,
    .btn-hero-glass i,
    .btn-hero-white i {
        font-size: 0.92rem !important;
        margin-right: 0.2rem !important;
    }

    .page-header.premium-animate .header-actions .position-relative,
    .hero-aurora .hero-actions .position-relative {
        width: 100% !important;
        min-width: 0 !important;
    }

    .year-select-premium {
        width: 100% !important;
        height: 38px !important;
        padding: 0.35rem 1.6rem 0.35rem 0.75rem !important;
        font-size: 0.78rem !important;
        border-radius: 50px !important;
        text-overflow: ellipsis !important;
    }
}
