﻿body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.navbar {
    background-color: #fff;
    color: #de3a23;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.brand-text {
    letter-spacing: 0.03em;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
    align-items: center;
}

    .nav-links li {
        display: inline-flex;
        align-items: center;
    }

    .nav-links a {
        color: #de3a23;
        text-decoration: none;
        font-weight: 500;
        padding: 4px 6px;
        border-radius: 4px;
    }

        .nav-links a:hover {
            background-color: black;
        }

.nav-user {
    font-size: 0.9rem;
    opacity: 0.85;
}

.nav-logout {
    color: #fff;
    font-size: 0.9rem;
    padding: 0 4px;
    border: none;
    background: transparent;
}

.inline-form {
    display: inline;
}

/* Page content */

.body-content {
    margin-top: 24px;
    padding-bottom: 40px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.text-muted {
    color: #6b7280;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.3;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #de3a23;
    color: #fff;
    border-color: #c7331f;
}

    .btn-primary:hover {
        background-color: #c7331f;
    }

.btn-secondary {
    background-color: #111827;
    color: #fff;
    border-color: #111827;
}

    .btn-secondary:hover {
        background-color: #020617;
    }

.btn-info {
    background-color: #0ea5e9;
    color: #fff;
    border-color: #0284c7;
}

    .btn-info:hover {
        background-color: #0284c7;
    }

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
}

/* Cards / panels */

.panel {
    border-radius: 12px;
    margin-bottom: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.panel-heading {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    background-color: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.panel-body {
    padding: 12px;
}

.panel-success .panel-heading {
    background-color: #ecfdf5;
    border-color: #bbf7d0;
}

/* Alerts */

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.alert-success {
    background-color: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Forms */

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

.form-control {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

    .form-control:focus {
        outline: none;
        border-color: #de3a23;
        box-shadow: 0 0 0 1px rgba(222,58,35,0.3);
    }

.text-danger {
    color: #b91c1c;
    font-size: 0.8rem;
}

/* Tables */

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

    .table th,
    .table td {
        border-bottom: 1px solid #e5e7eb;
        padding: 8px 10px;
        text-align: left;
    }

    .table th {
        background-color: #f9fafb;
        font-weight: 600;
    }

/* Event cards */

.event-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 16px;
}

.event-card {
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.event-image-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background-color: #111827;
}

.event-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .event-image.placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #f9fafb;
    }

.event-card-body {
    padding: 10px 12px 12px;
}

.event-title {
    margin: 0 0 4px;
}

.event-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.event-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 10px;
}

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

/* Event banner */

.event-banner-wrap {
    margin: 10px 0 14px;
}

.event-banner {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

/* Footer */

footer {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}
.event-carousel {
    position: relative;
    margin: 10px 0 20px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    max-height: 1000px;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    /*display: none;*/
    max-width: 100%;
    max-height: 100%;
}

    .carousel-slide.active {
        display: block;
    }

    .carousel-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: rgba(17, 24, 39, 0.7);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carousel-nav:hover {
        background-color: rgba(17, 24, 39, 0.9);
    }
/*.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 10px;
}*/

/*.seat {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    cursor: pointer;
    font-size: 0.8rem;
}*/

    .seat input[type="checkbox"] {
        display: none;
    }

    .seat span {
        pointer-events: none;
    }

    .seat:hover {
        border-color: #de3a23;
    }

    .seat input[type="checkbox"]:checked + span {
        font-weight: 600;
    }

.seat-sold {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    color: #6b7280;
    cursor: not-allowed;
}
.seat-reserved {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    cursor: not-allowed;
}
/*.seat-layout {
    margin-top: 10px;
    border-radius: 8px;
    background-color: #f9fafb;
    padding: 10px;
}

.seat-layout-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.seat-layout-label {
    min-width: 120px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.seat-layout-seats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.seat-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #111827;
}

.seat-box-reserved {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.seat-box-sold {
    background-color: #fecaca;
    border-color: #b91c1c;
    color: #7f1d1d;
}*/
/* Global layout padding for mobile */
.page-content,
.container,
body {
    padding-left: 10px;
    padding-right: 10px;
}

/* Forms with side-by-side fields turn into stacked on small screens */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column !important;
    }

        .form-row .form-group {
            width: 100% !important;
        }

    .btn {
        margin-bottom: 6px;
    }
}

/* Make tables scroll horizontally on mobile instead of squishing */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Generic utility for small text on labels */
.text-sm {
    font-size: 0.85rem;
}
/* Seat selection grid on Buy/SelectSeats page */
.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.seat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    cursor: pointer;
    font-size: 0.85rem;
    min-height: 40px; /* easier to tap */
}

@media (max-width: 600px) {
    .seat {
        font-size: 0.8rem;
        min-height: 44px;
    }
}
.seat-layout {
    margin-top: 10px;
    border-radius: 8px;
    background-color: #f9fafb;
    padding: 10px;
}

/* Each row: label on left, seats on right */
.seat-layout-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

/* Label (Section/Row) */
.seat-layout-label {
    min-width: 120px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

/* Seat boxes container */
.seat-layout-seats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Individual seat box */
.seat-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #111827;
}

/* Status colors */
.seat-box-reserved {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.seat-box-sold {
    background-color: #fecaca;
    border-color: #b91c1c;
    color: #7f1d1d;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .seat-layout-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .seat-layout-label {
        min-width: 0;
        margin-bottom: 4px;
        font-size: 0.8rem;
    }

    .seat-layout-seats {
        width: 100%;
    }

    .seat-box {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column !important;
    }

        .form-row .form-group {
            width: 100% !important;
        }
}
.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.seat-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.seat-legend-swatch {
    transform: scale(0.9);
}
.seat-row-block {
    margin-bottom: 12px;
}

.seat-row-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.select-seat-legend {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .seat-row-label {
        font-size: 0.8rem;
    }
}
/* State colors for Select Seats page */
.seat-reserved {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    cursor: not-allowed;
}

.seat-sold {
    background-color: #fecaca;
    border-color: #b91c1c;
    color: #7f1d1d;
    cursor: not-allowed;
}
/* ===== NAVIGATION BAR ===== */

.nav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    height: 36px;
}

/* Links (desktop) */
.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

    /* Individual link styles */
    .nav-links a {
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        font-size: 1rem;
    }

        .nav-links a:hover {
            color: #de3a23;
        }

/* Logout button inside menu */
.nav-logout-form {
    margin: 0;
}

.nav-logout-btn {
    background: none;
    border: none;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

    .nav-logout-btn:hover {
        color: #de3a23;
    }

/* ===== HAMBURGER (MOBILE) ===== */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 24px;
    height: 3px;
    background-color: #374151;
    border-radius: 3px;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 58px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
        display: none; /* hidden by default */
    }

        .nav-links a,
        .nav-logout-btn {
            padding: 12px;
            width: 100%;
            text-align: center;
            font-size: 1.1rem;
            border-top: 1px solid #f3f4f6;
        }

        /* Slide down animation */
        .nav-links.open {
            display: flex;
            animation: slideDown 0.25s ease-out;
        }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
.seat {
    width: 38px;
    height: 38px;
    margin: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    user-select: none;
}

    .seat.available {
        background-color: #28a745; /* Green */
    }

    .seat.selected {
        background-color: #007bff; /* Blue */
    }

    .seat.sold {
        background-color: #6c757d; /* Gray */
        cursor: not-allowed;
        opacity: 0.7;
    }
.seat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    margin: 4px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    user-select: none;
}

    .seat input[type="checkbox"] {
        display: none; /* hide the checkbox, we style the label */
    }

/* ✅ Available = green */
.seat-available {
    background-color: #28a745;
}

/* ✅ Selected = blue */
.seat-selected {
    background-color: #007bff;
}

/* Reserved = maybe orange */
.seat-reserved {
    background-color: #ffc107;
    cursor: not-allowed;
}

/* Sold = gray */
.seat-sold {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Legend swatches */
.seat-legend {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.seat-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.seat-legend-swatch {
    width: 20px;
    height: 20px;
}
/* Base seat box */
.seat-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 2px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

    /* ✅ Available seats = green */
    .seat-box:not(.seat-box-reserved):not(.seat-box-sold) {
        background-color: #28a745; /* green */
    }

/* ✅ Reserved (selected/held) seats = blue */
.seat-box-reserved {
    background-color: #007bff; /* blue */
}

/* ✅ Sold seats = gray */
.seat-box-sold {
    background-color: #6c757d; /* gray */
    opacity: 0.8;
}
.ticket-box {
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.ticket-checkedin {
    background-color: #dc3545 !important; /* Red */
    color: white;
    border: 1px solid #a71d2a !important;
}

    .ticket-checkedin .badge {
        background-color: white;
        color: #dc3545 !important;
    }
.checkin-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 20px;
}

.checkin-success {
    background-color: #16a34a10;
}

.checkin-fail {
    background-color: #dc262610;
}

.checkin-result h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.checkin-result p {
    font-size: 1.1rem;
}
.wheel-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    margin-top: 16px;
}

.wheel-panel {
    position: relative;
    width: 420px;
    height: 420px;
}

#wheel {
    border-radius: 50%;
    border: 10px solid #111;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 32px solid #e11d48; /* pointer color */
    filter: drop-shadow(0 4px 3px rgba(0,0,0,.25));
}

.controls {
    flex: 1;
    min-width: 280px;
}

.result-box {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 700;
}

.list-box {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    max-height: 280px;
    overflow: auto;
    font-size: 14px;
    white-space: pre-line;
}
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.carousel-track {
    display: flex;
    transition: transform 400ms ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
}

    .carousel-slide img {
        max-width: 100%;
        max-height: 1000px;
        object-fit: cover;
        display: block;
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0,0,0,.35);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 26px;
}

    .carousel-btn.prev {
        left: 12px;
    }

    .carousel-btn.next {
        right: 12px;
    }

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    border: 0;
}

    .carousel-dot.active {
        background: rgba(255,255,255,.95);
    }
