/* CSS Variables for Colors */
:root {
    --stall-coral: #00796B;
    --stall-yellow: #00796B;
    --stall-white: #ffffff;
    --stall-green: #90c695;
    --stall-blue: #7ecef4;
    --stall-booked: #4caf50;
    --stall-reserved: #9c27b0;
    /* Purple color for reserved stalls */
    --stall-selected: #2196f3;
    --corridor-bg: #e8d4a8;
    --dome-bg: #b5e3e8;
    --food-court-bg: #c4d97e;
    --activity-dome-bg: #2e9e5b;
    --border-color: #666;
    --text-dark: #333;
    --text-red: #d32f2f;
    --lounge-cyan: #1b828f;
    /* Line 18: Dome headers color (Dome A, B, C, etc.) */
    --a-stall-color: #ff9800;
    /* Line 19: A stalls color (A1-A12) */
    --primary-color: #1976d2;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;

    /* CORRIDOR WIDTH - Change this value to resize corridor & sync Dome D */
    --corridor-width: 250px;
}

/* ============================================
   SITE HEADER
   ============================================ */

.site-header {
    background: #1a1a1a;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.header-tagline {
    font-size: 12px;
    color: #888;
}

.header-nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-btn-primary {
    background: #4caf50;
    color: white;
}

.nav-btn-primary:hover {
    background: #43a047;
}

.nav-btn-secondary {
    background: #333;
    color: #ccc;
}

.nav-btn-secondary:hover {
    background: #444;
    color: white;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .header-logo {
        text-align: center;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Prevent horizontal overflow */
html,
body {
    overflow-x: hidden;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    min-height: 100vh;
    padding: 20px;
}

/* Main Layout Container */
.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 10px;
}

/* ============================================
   MAIN 3-COLUMN GRID LAYOUT
   ============================================ */
.main-grid {
    display: grid;
    /* Left domes | Corridor (synced with --corridor-width) | Right domes */
    grid-template-columns: 1fr var(--corridor-width) 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
}

/* Mobile tweaks to avoid overflow/extra space */
@media (max-width: 768px) {
    :root {
        --corridor-width: 200px;
    }

    html,
    body {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        height: auto;
    }

    body {
        min-height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .layout-container {
        padding: 5px;
        margin: 0 auto;
        max-width: 100%;
        position: relative;
        width: 100%;
    }

    .main-grid {
        grid-template-columns: 1fr var(--corridor-width) 1fr;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .grid-top-left {
        padding-right: 10px;
        padding-top: 20px;
        padding-bottom: 0;
    }

    .grid-bottom {
        padding: 5px 0 0 0 !important;
        margin: 0 !important;
    }

    .entry-area {
        margin: 0;
        padding: 0;
    }

    .right-domes {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .activity-dome {
        margin-bottom: 0;
    }

    /* Stall info section mobile fix */
    .stall-info-section {
        width: 100%;
        margin-top: 20px;
    }
}

/* Top Row - Special handling for Dome D which spans wider */
.grid-top-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 30px;
    padding-bottom: 10px;
    padding-top: 100px;
}

.grid-top-center {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    /* Allow Dome D to extend beyond column */
}

.grid-top-right {
    grid-column: 3;
    grid-row: 1;
}

/* Middle Row - Domes and Corridor */
.left-domes {
    grid-column: 1;
    grid-row: 2;
}

.central-corridor {
    grid-column: 2;
    grid-row: 2;
}

.right-domes {
    grid-column: 3;
    grid-row: 2;
}

/* Bottom Row */
.grid-bottom {
    grid-column: 1 / -1;
    /* Span all columns */
    grid-row: 3;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

/* ============================================
   FOOD COURT
   ============================================ */
.food-court {
    width: 310px;
    height: 250px;
    background: var(--food-court-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #666;
}

/* ============================================
   DOME D (Top Center)
   ============================================ */
.dome-d-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0px;
}

.dome-d-wrapper .top-label {
    margin-bottom: 5px;
}

/* Left and Right Dome Columns */
.left-domes,
.right-domes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between domes */
    box-sizing: border-box;
    align-items: stretch;
    margin-left: 20px;
}

/* Width is now controlled by grid-template-columns */

/* Dome Wrapper */
.dome-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px dashed var(--lounge-cyan);
    background: var(--dome-bg);
    min-height: 200px;
    flex-shrink: 0;
    /* Prevent domes from shrinking/overlapping */
    min-width: 450px;
    max-width: 4500px;
    padding: 10px;
}

/* Dome Labels */
.dome-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--lounge-cyan);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dome-label.top-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
    padding: 5px 20px;
}

.dome-label.right-label {
    transform: rotate(0deg);
    /* Explicit no rotation for right labels */
}

/* Dome Content Areas */
.dome {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Dome D is now a right-side dome, uses .dome-horizontal layout */

/* Dome D Cluster (Left and Right) */
.dome-d-cluster {
    display: flex;
    flex-direction: column;

}

/* Teal Header (A5, A6) - Styled like regular stalls */
.cluster-header {
    background: var(--a-stall-color);
    color: #0C3459;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    padding: 0;
    border: 1px solid #999;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    max-height: 45px;
    /* Fixed height - prevents expansion */
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding/border included in size */
}

/* Ensure logo fits within A stalls (A5, A6) without expanding */
.cluster-header.has-logo {
    padding: 0;
    height: 45px;
    /* Fixed height when logo is present */
    max-height: 45px;
}

.cluster-header .stall-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Cluster body - contains columns and inner aisle */
.cluster-body {
    display: flex;
}

/* Individual column */
.cluster-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Inner aisle between columns within a cluster */
.inner-aisle {
    width: 20px;
    background: var(--dome-bg);
}

/* Domed Stalls - Horizontal text */
.domed-stall {
    width: 32px;
    height: 29px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Click-to-select active state for stalls */
.domed-stall.selected,
.cluster-header.selected,
.cluster-header-side.selected {
    outline: 3px solid #2196f3;
    outline-offset: 2px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

/* Tan/Yellow stalls */
.domed-stall.tan {
    background: #F8F9FA;
}

/* Salmon/Pink bottom stalls - larger size */
.domed-stall.salmon {
    background: #108f80;
    color: #ffffff;
    width: 32px;
    height: 50px;
    font-size: 10px;
    font-weight: bold;
}

/* Premium stalls in domes A, B, C, D, E */
#dome-a .domed-stall.salmon,
#dome-b .domed-stall.salmon,
#dome-c .domed-stall.salmon,
#dome-d .domed-stall.salmon,
#dome-e .domed-stall.salmon {
    width: 50px;
    /* adjust as needed */
    height: 29px;
    /* adjust as needed */
    font-size: 11px;
    /* optional */
}

/* Stall Large (keeping for other uses) */
.stall-large {
    min-width: 90px;
    height: 80px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    background: var(--stall-yellow);
}

/* Click-to-select active state for large stalls */
.stall-large.selected {
    outline: 3px solid #2196f3;
    outline-offset: 2px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.dome-label-top {
    background: var(--lounge-cyan);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 30px;
    text-align: center;
    margin-bottom: 0;
}

/* Vertical dome layout (reusable for Dome D style) */
.dome-vertical {

    padding: 5px;
}

.dome-vertical .dome-d-layout {
    justify-content: flex-start;
    padding: 5px;
}

/* Horizontal dome layout (for side domes like A, B, C, E, F) */
.dome-horizontal {
    padding: 5px;
}

.dome-h-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dome-h-cluster {
    display: flex;
    align-items: stretch;
}

.cluster-header-side {
    background: var(--a-stall-color);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 5px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3aa;
    min-width: 45px;
    max-width: 45px;
    /* Fixed width - prevents expansion */
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* Ensure padding/border included in size */
}

/* Ensure logo fits within A stalls (A1-A4, A7-A10) without expanding */
.cluster-header-side.has-logo {
    padding: 0;
    width: 45px;
    /* Fixed width when logo is present */
    max-width: 45px;
    writing-mode: horizontal-tb;
    /* Reset writing mode when logo is present */
}

.cluster-header-side .stall-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.cluster-body-h {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cluster-row {
    display: flex;
    gap: 2px;
}

.horizontal-aisle {
    height: 14px;
    background: var(--dome-bg);
}

/* Right-side marker for Dome E, F */
.cluster-header-side-right {
    background: var(--a-stall-color);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 5px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3aa;
    min-width: 22px;
}

/* Right dome cluster - marker on right side */
.cluster-right {
    flex-direction: row;
}

.cluster-right .cluster-header-side {
    transform: rotate(0deg);
}

/* Right dome adjustments */
.dome-right .dome-h-cluster {
    flex-direction: row;
}

.dome-right .domed-stall.salmon {
    width: 28px;
    height: 50px;
}

/* BC stalls in horizontal domes - larger size */
.dome-horizontal .domed-stall.salmon {
    width: 48px;
    height: 24px;
    font-size: 9px;
    font-weight: bold;
}

/* Stall Row */
.stall-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Individual Stall */
.stall {
    min-width: 28px;
    height: 22px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Click-to-select active state for regular stalls */
.stall.selected {
    outline: 3px solid #2196f3;
    outline-offset: 2px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.stall.coral {
    background: var(--stall-coral);
}

.stall.yellow {
    background: var(--stall-yellow);
}

.stall.white {
    background: var(--stall-white);
}

.stall.green {
    background: var(--stall-green);
}

.stall.blue {
    background: var(--stall-blue);
}

/* Lounge/Area Markers */
.lounge-marker {
    background: var(--lounge-cyan);
    color: #fff;
    font-size: 7px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3aa;
}

/* Central Corridor */
.central-corridor {
    background: var(--corridor-bg);
    width: 100%;
    /* Fill the grid column */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    position: relative;
    gap: 8px;
    height: 765px;
    width: 270px;
    /* Width synced with --corridor-width via grid */
}

/* Corridor Elements */
.announcement-office {
    background: #f5deb3;
    border: 3px solid #999;
    padding: 20px 30px;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.corridor-plants {
    display: flex;
    gap: 20px;
    margin: 5px 0;
}

.plant-circle {
    width: 18px;
    height: 18px;
    background: #2e7d32;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Walking Section */
.walking-section {
    width: 100%;
    text-align: center;
    padding: 3px 0;
    border-top: 1px dashed #999;
    border-bottom: 1px dashed #999;
}

.meter-label {
    font-size: 9px;
    color: #666;
}

/* Seating Section */
.seating-section {
    width: 150%;
    display: flex;
    justify-content: center;
}

.seating-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.seat-row {
    display: flex;
    gap: 5px;
}

.seat {
    width: 15px;
    height: 15px;
    background: #d4c4a8;
    border: 1px solid #b5a080;
    border-radius: 2px;
}

.stage-area {
    background: #d4a574;
    border: 3px solid #999;
    padding: 20px 70px;
    font-size: 18px;
    color: var(--text-red);
    margin-top: auto;
    font-weight: 500;
}

.corridor-labels {
    display: flex;
    gap: 70px;
    margin-top: 5px;
    font-size: 10px;
}

.entry-label-text {
    color: var(--text-red);
    font-weight: 500;
}

.exit-label-text {
    color: var(--text-red);
    font-weight: 500;
}

/* Walking Space Indicator */
.walking-space {
    font-size: 12px;
    color: #666;
    writing-mode: vertical-rl;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Special Areas */
.activity-dome {
    background: var(--activity-dome-bg);
    width: 100%;
    min-height: 190px;
    display: flex;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a7a3a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    box-sizing: border-box;
    flex-shrink: 0;
    /* Prevent shrinking/overlapping */
    height: 240px;
}

.area-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.food-court .area-label {
    color: #5a5a00;
    font-size: 18px;
}

.activity-dome .area-label {
    color: #1f1f1f;
    font-size: 18px;
    text-shadow: none;
}

/* Entry Area (in grid-bottom) */
.entry-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trees-row {
    display: flex;
    gap: 12px;
}

.tree {
    width: 18px;
    height: 18px;
    background: #2e7d32;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.entry-labels {
    display: flex;
    gap: 40px;
    font-size: 11px;
}

.entry-text {
    color: var(--text-red);
    font-weight: bold;
}

.exit-text {
    color: var(--text-red);
    font-weight: bold;
}

.palm-area {
    display: flex;
    gap: 8px;
    width: 150px;
    justify-content: center;
}

.palm-icon {
    font-size: 28px;
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .layout-container {
        transform-origin: top left;
        transform: scale(0.9);
    }
}

@media (max-width: 1000px) {
    .layout-container {
        transform: scale(0.75);
    }
}

/* ============================================
   STALL STATES
   ============================================ */

/* Selected State */
.domed-stall.selected,
.stall.selected,
.stall-large.selected {
    border: 2px solid var(--stall-selected) !important;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    background: #bbdefb !important;
}

/* Booked State (Approved) */
.domed-stall.booked,
.stall.booked,
.stall-large.booked {
    background: var(--stall-booked) !important;
    border-color: #388e3c !important;
    cursor: pointer;
}

/* Reserved State */
.domed-stall.reserved,
.stall.reserved,
.stall-large.reserved,
.cluster-header.reserved,
.cluster-header-side.reserved {
    background: var(--stall-reserved) !important;
    border-color: #7b1fa2 !important;
    color: #fff !important;
    cursor: pointer;
}

/* Stall with Logo */
.domed-stall.has-logo,
.stall.has-logo,
.stall-large.has-logo,
.cluster-header.has-logo,
.cluster-header-side.has-logo {
    padding: 0;
}

.stall-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1px;
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

.stall-tooltip {
    position: fixed;
    background: rgba(33, 33, 33, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 200px;
}

.tooltip-stall-id {
    font-weight: bold;
    margin-bottom: 4px;
}

.tooltip-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.tooltip-status.available {
    background: #4caf50;
}

.tooltip-status.booked {
    background: #2196f3;
}

.tooltip-status.reserved {
    background: #9c27b0;
}

.tooltip-status.selected {
    background: #2196f3;
}

/* ============================================
   SELECTION DISPLAY
   ============================================ */

.selection-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 220px;
    max-width: 320px;
    display: none;
}

.selection-header {
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.selection-list {
    font-size: 12px;
    color: #333;
    margin-bottom: 12px;
    max-height: 80px;
    overflow-y: auto;
    line-height: 1.6;
    padding: 4px 0;
}

.selection-actions {
    display: flex;
    gap: 8px;
}

.selection-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   LEGEND STYLES
   ============================================ */

.stall-legend {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.legend-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.legend-color {
    width: 22px;
    height: 16px;
    border: 1px solid #999;
    border-radius: 3px;
}

.legend-color.booked {
    background: var(--stall-booked);
    border-color: #388e3c;
}

.legend-color.reserved {
    background: var(--stall-reserved);
    border-color: #7b1fa2;
}

.legend-color.selected {
    background: #bbdefb;
    border-color: var(--stall-selected);
}

.legend-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 6px;
    transition: all 0.2s;
}

.admin-link:hover {
    background: rgba(25, 118, 210, 0.2);
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content.modal-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 24px;
}

/* ============================================
   BOOKING FORM STYLES
   ============================================ */

.selected-stalls-info {
    background: #e3f2fd;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.selected-stalls-info label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 13px;
}

.selected-stalls-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stall-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-preview {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-preview:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.file-upload-preview span {
    color: #888;
    font-size: 13px;
}

.file-upload-preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.btn-primary:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #388e3c 100%);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #d32f2f 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

/* ============================================
   STALL INFO POPUP STYLES
   ============================================ */

.stall-info-card {
    text-align: center;
}

.stall-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stall-id-badge {
    background: #333;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.stall-info-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 16px auto;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 8px;
    background: #fafafa;
}

.stall-info-details {
    text-align: left;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.info-value a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ============================================
   PREMIUM COMPANY PROFILE MODAL
   ============================================ */

.company-card {
    text-align: center;
}

/* Hero Section */
.company-hero {
    padding: 30px 20px;
    background: #fafafa;
    margin: -24px -24px 24px -24px;
    border-bottom: 1px solid #eee;
}

.company-hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.company-hero-initials {
    width: 100px;
    height: 100px;
    background: #333;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.company-hero-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.company-hero-stall {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* About Section */
.company-about {
    background: #f9f9f9;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #eee;
}

.company-about p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* Contact Person / Representative */
.company-representative {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.rep-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.rep-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.rep-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.rep-contact {
    font-size: 13px;
    color: #666;
}

/* Links Section - Website & Brochure */
.company-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.company-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.company-link:hover {
    border-color: #333;
    background: #fafafa;
}

.link-icon {
    font-size: 20px;
}

.link-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.link-arrow {
    font-size: 18px;
    color: #999;
    transition: transform 0.2s ease;
}

.company-link:hover .link-arrow {
    transform: translateX(4px);
    color: #333;
}

/* Contact Details Section */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.contact-detail-item:hover {
    color: #000;
}

.detail-icon {
    font-size: 18px;
}

.detail-text {
    font-size: 14px;
    font-weight: 500;
}

/* Make modal wider for company profile */
.modal-content.modal-small {
    max-width: 420px;
}

/* Responsive */
@media (max-width: 480px) {
    .company-hero-name {
        font-size: 22px;
    }

    .company-hero-logo,
    .company-hero-initials {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 20000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #388e3c 100%);
}

.toast.error {
    background: linear-gradient(135deg, var(--error-color) 0%, #d32f2f 100%);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-message {
    font-size: 14px;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

/* ============================================
   ARROW INDICATORS
   ============================================ */

.arrow-indicator {
    font-size: 14px;
    color: var(--primary-color);
}

/* ============================================
   STALL INFORMATION SECTION
   ============================================ */

.stall-info-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    clear: both;
}

.stall-info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-header p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.stall-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.stall-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stall-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #64748b;
    color: #fff;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.stall-card.type-a .card-ribbon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stall-card.type-b .card-ribbon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stall-card.type-c .card-ribbon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-header {
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stall-type {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stall-card.type-a .stall-type {
    color: #fbbf24;
}

.stall-card.type-b .stall-type {
    color: #60a5fa;
}

.stall-card.type-c .stall-type {
    color: #34d399;
}

.stall-size {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.card-price {
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.currency {
    font-size: 20px;
    color: #94a3b8;
    vertical-align: top;
    margin-right: 2px;
}

.amount {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.stall-card.type-a .amount {
    color: #fbbf24;
}

.stall-card.type-b .amount {
    color: #60a5fa;
}

.stall-card.type-c .amount {
    color: #34d399;
}

.card-features {
    padding: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.feature-text {
    font-size: 15px;
    color: #e2e8f0;
    font-weight: 500;
}

.card-footer {
    padding: 20px 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stall-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .stall-info-section {
        padding: 40px 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .stall-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stall-card {
        max-width: 100%;
    }

    .amount {
        font-size: 36px;
    }
}