/* style.css - Premium LIGHT MODE styling, glassmorphic grids & interactive venue layout map */

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

:root {
    --font-outfit: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-inter);
    background-color: #f8fafc; /* Premium Light Mode Slate-50 */
    color: #0f172a; /* Slate-900 */
    overflow-x: hidden;
}

/* Beautiful custom ambient background (Soft warm Light Mode) */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.06) 0%, rgba(244, 63, 94, 0) 70%);
    filter: blur(60px);
    animation: floating-orb 20s infinite alternate;
}

.glow-orb-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(60px);
    animation: floating-orb-reverse 25s infinite alternate;
}

@keyframes floating-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 8%) scale(1.1); }
}

@keyframes floating-orb-reverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, -5%) scale(1.05); }
}

/* Scrollbars - customized for light mode */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(244, 63, 94, 0.2);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 63, 94, 0.4);
}

/* Premium Light Mode Glassmorphic cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(244, 63, 94, 0.2);
    box-shadow: 0 10px 25px -3px rgba(244, 63, 94, 0.06), 0 4px 12px -2px rgba(244, 63, 94, 0.04);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Header style with Outfit Font */
.font-header {
    font-family: var(--font-outfit);
}

/* Premium active state rundown timeline bullet */
.timeline-pulse {
    position: relative;
}
.timeline-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.4;
    animation: live-pulse-anim 1.5s infinite;
}

@keyframes live-pulse-anim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* Interactive Device Emulator (Smartphone Frame in Light Mode context) */
.phone-frame {
    width: 375px;
    height: 760px;
    border-radius: 40px;
    border: 10px solid #0f172a; /* Slate 900 phone chassis */
    background: #ffffff;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15), 0 0 0 3px rgba(244, 63, 94, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 20px;
    background: #0f172a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-notch::before {
    content: '';
    width: 35px;
    height: 3px;
    background: #475569;
    border-radius: 999px;
    margin-bottom: 2px;
}

.phone-screen {
    flex: 1;
    overflow-y: auto;
    padding: 30px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    background-color: #fafbfc; /* light theme inside phone screen */
}

.phone-screen::-webkit-scrollbar {
    width: 3px;
}
.phone-screen::-webkit-scrollbar-thumb {
    background: rgba(244, 63, 94, 0.15);
    border-radius: 10px;
}

/* Glassmorphic tab headers for the smartphone view */
.glass-tab {
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 3px;
}

/* Micro-animations */
.hover-scale {
    transition: all 0.2s ease-in-out;
}
.hover-scale:hover {
    transform: scale(1.015);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

/* Simulation Controls floating bar - optimized for light mode */
.sim-controls-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
}

/* Image overlay on hover */
.img-container {
    position: relative;
    overflow: hidden;
}
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.1) 60%, rgba(15, 23, 42, 0) 100%);
    opacity: 1;
}

/* Ring ring wedding branding */
.wedding-logo {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ======================================================== */
/* 🗺️ INTERACTIVE FLOOR PLAN / VENUE LAYOUT SCHEMATIC MAP  */
/* ======================================================== */

.venue-hall-blueprint {
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    position: relative;
    width: 100%;
    max-width: 480px; 
    height: auto;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    background-color: #fafaf9;
}

/* Columns / Pillars in the reception hall blueprint */
.blueprint-pillar {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #64748b;
    border: 1px solid #475569;
    border-radius: 2px;
}

/* Grid lines for architectural sketching */
.blueprint-grid {
    position: absolute;
    inset: 0;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    pointer-events: none;
}

/* Table layout styling matching original user blueprint image */
.bp-table-rect {
    position: absolute;
    border: 1.5px solid #cbd5e1;
    background: rgba(254, 215, 170, 0.2); /* Soft orange tint */
    border-color: #f97316; /* Orange border */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #c2410c;
    font-weight: bold;
}

.bp-table-round {
    position: absolute;
    border: 1.5px solid #fbcfe8;
    background: rgba(253, 244, 245, 0.8);
    border-color: #db2777; /* Pink border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #be185d;
    font-weight: bold;
}

/* Bridal Makeup Room and Restrooms (Top Section) */
.bp-room-border {
    position: absolute;
    border: 1.5px solid #94a3b8;
    background: rgba(241, 245, 249, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

/* Dance floor section */
.bp-dance-floor {
    position: absolute;
    border: 1.5px dashed #94a3b8;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
}

/* Buffet area */
.bp-buffet {
    position: absolute;
    border: 1.5px solid #fca5a5;
    background: rgba(254, 226, 226, 0.4);
    border-color: #ef4444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: #b91c1c;
}

/* Glowing Interactive Pins (Hotspots) placed on layouts */
.blueprint-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.blueprint-pin::before {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.15;
    /* Removed heavy GPU pulse animation for extremely lightweight loading */
    transition: all 0.2s ease-in-out;
}

.blueprint-pin::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.blueprint-pin:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

/* Pin color states */
.pin-grey  { background-color: #64748b; }  /* PENDING — Belum Ready / Belum Mulai */
.pin-green { background-color: #10b981; }  /* READY/HABIS — Ready (konsumsi) / Selesai (operasional) */
.pin-red   { background-color: #ef4444; }  /* HABIS — Habis/Sold Out (konsumsi) */
.pin-blue  { background-color: #3b82f6; }  /* READY — Mulai/Aktif (operasional) */

/* Elegant glassmorphic tooltips for layout spots */
.bp-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    width: 220px;
    z-index: 30;
    pointer-events: auto;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -105%);
}

.bp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: inherit;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Floor map preview on mobile screen device */
.phone-venue-map {
    height: 480px; /* Taller viewport for vertical blueprint */
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #fbfbf8;
    position: relative;
    overflow: hidden;
}

.phone-venue-map .venue-hall-blueprint {
    height: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    transform: none !important; /* Native non-transform for 60fps rendering */
}

/* Stripped Phone Frame Bezel for native mobile feel on real mobile devices */
.phone-frame.no-frame {
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

.phone-frame.no-frame .phone-notch {
    display: none !important;
}

.phone-frame.no-frame .phone-screen {
    padding-top: 16px !important; /* Normal padding for non-notched fullscreen screen */
}

/* ======================================================== */
/* 🏛️ PREMIUM COLLAPSIBLE SIDEBAR STYLE (MATCHING MOCKUP)   */
/* ======================================================== */

.sidebar-collapsed-state {
    max-width: 80px !important;
}

.sidebar-collapsed-state .sidebar-text {
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.sidebar-collapsed-state .sidebar-search {
    display: none !important;
}

.sidebar-collapsed-state .sidebar-btn {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sidebar-collapsed-state #sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* ======================================================== */
/* 📱 MOBILE NAV TAB SCROLL — hide scrollbar               */
/* ======================================================== */

.nav-tab-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.nav-tab-scroll::-webkit-scrollbar {
    display: none;
}

/* Mobile header: tighten PIC badge text on small screens */
@media (max-width: 480px) {
    .sim-controls-bar .logged-pic-badge {
        max-width: 160px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

