/* Diwali Fest Stall Booking Stylesheet */

:root {
    --primary-festive: #d9480f;
    --festive-gold: #f59f00;
    --festive-gold-light: #fff9db;
    --festive-bg: #fff8f0;
    --stall-open: #6ed58f;
    --stall-open-border: #40c057;
    --stall-booked: #dc5942;
    --stall-reserved: #6ca8e0;
    --stall-org-reserved: #bce0fd;
    --stall-org-border: #74b8f5;
    --stall-selected: #2f9e44;
}

.festive-hero {
    background: linear-gradient(135deg, #7c1a00 0%, #d9480f 50%, #f59f00 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(217, 72, 15, 0.2);
    position: relative;
    overflow: hidden;
}

.festive-hero::after {
    content: "✨ 🪔 ✨";
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2.2rem;
    opacity: 0.85;
}

.tier-badge-card {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    padding: 14px 18px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.tier-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.tier-badge-card.active-tier {
    border: 2px solid var(--primary-festive);
    background: #fff5eb;
}

/* Ground Layout Grid */
.ground-map-container {
    background: #FFF5E6;
    border: 2px solid #e9d5c4;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow-x: auto;
    position: relative;
}

.ground-layout {
    display: grid;
    grid-template-columns: repeat(29, minmax(34px, 1fr));
    grid-template-rows: repeat(9, minmax(58px, auto));
    gap: 4px;
    min-width: 1050px;
    margin: 0 auto;
}

.stall-node {
    border: 1.5px solid #2b2b2b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    padding: 3px 2px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}

.stall-node.Open {
    background-color: var(--stall-open);
    color: #123d1d;
}

.stall-node.Open:hover {
    background-color: #51cf66;
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    border-color: #0b7285;
}

.stall-node.Booked {
    background-color: var(--stall-booked);
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.92;
}

.stall-node.Reserved {
    background-color: var(--stall-reserved);
    color: #ffffff;
    cursor: not-allowed;
}

.stall-node.OrgReserved {
    background-color: var(--stall-org-reserved);
    color: #0c4a75;
    border-color: var(--stall-org-border);
    cursor: not-allowed;
}

.stall-node.OrgReserved:hover {
    background-color: #a8d5fc;
    box-shadow: 0 4px 10px rgba(116, 184, 245, 0.4);
}

.stall-node.selected-stall {
    background-color: var(--stall-selected) !important;
    color: #ffffff !important;
    border: 2.5px solid #ffec99 !important;
    transform: scale(1.12);
    z-index: 20;
    box-shadow: 0 0 0 4px rgba(245, 159, 0, 0.45), 0 8px 18px rgba(0,0,0,0.25);
    animation: pulseSelected 1.5s infinite;
}

@keyframes pulseSelected {
    0% { box-shadow: 0 0 0 0 rgba(245, 159, 0, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(245, 159, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 159, 0, 0); }
}

.stall-number {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
}

.stall-size {
    font-size: 0.58rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: -0.2px;
}

#stage-box {
    grid-column: 1;
    grid-row: 4 / span 3;
    background: #ced4da;
    border: 2px solid #495057;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: #212529;
    writing-mode: vertical-lr;
    text-orientation: upright;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.foodcourt-box {
    grid-column: 14 / span 10;
    grid-row: 4 / span 3;
    background: #ffc9c9;
    border: 2px dashed #e03131;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #c92a2a;
    padding: 10px;
    box-shadow: inset 0 2px 8px rgba(224, 49, 49, 0.1);
}

/* Legend */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 10px;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #495057;
}

.legend-color-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #333;
}

.legend-color-box.open { background: var(--stall-open); }
.legend-color-box.booked { background: var(--stall-booked); }
.legend-color-box.reserved { background: var(--stall-reserved); }
.legend-color-box.org-reserved { background: var(--stall-org-reserved); border-color: var(--stall-org-border); }
.legend-color-box.selected { background: var(--stall-selected); border-color: #ffec99; }

/* Booking Card & Form */
.booking-form-card {
    border-radius: 14px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}

.booking-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 16px 20px;
}

.price-display-pill {
    background: linear-gradient(135deg, #2b8a3e 0%, #2f9e44 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(47, 158, 68, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.addon-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ced4da;
    background: #f8f9fa;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.addon-stepper button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.addon-stepper input {
    width: 48px;
    text-align: center;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 4px;
}

.partner-chip {
    background: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.partner-chip:hover {
    background: #e9ecef;
}

/* Printable Challan Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #challan-print-area, #challan-print-area * {
        visibility: visible;
    }
    #challan-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
}
