:root {
    --bg-color: #0f172a;
    --bg-gradient-1: #1e1b4b;
    --bg-gradient-2: #020617;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body.dark-theme {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 30%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.blur-effect {
    position: relative;
    overflow: hidden;
}
.blur-effect::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    z-index: -1;
}

/* Typography & Brand */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.w-100 {
    width: 100%;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #fff;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--danger);
}

.animate-pop {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.status-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    padding: 2rem 5%;
    gap: 2rem;
    height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-links li a .icon {
    font-size: 1.2rem;
    font-style: normal;
}

.sidebar-links li a:hover, 
.sidebar-links li a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-color);
}
.sidebar-links li a.active {
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), transparent);
}

.dashboard-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dashboard-content::-webkit-scrollbar {
    width: 6px;
}
.dashboard-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

/* Content Sections */
.content-section {
    display: none;
}
.content-section.active {
    display: block;
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--glass-border);
    margin-left: 1rem;
}

/* Data Display */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.data-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.15);
}

.data-card h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.data-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}
.data-card p strong {
    color: var(--text-color);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-primary { background: rgba(99, 102, 241, 0.2); color: var(--primary-color); }

/* Tables */
.table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

/* Spinner Loader */
.loader {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* QR Scanner */
.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.scanner-instruction {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.qr-reader-box {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* html5-qrcode overrides */
#reader__dashboard_section_csr span { color: #fff !important; }
#reader__dashboard_section_swaplink { color: var(--primary-color) !important; text-decoration: none; }
#reader__camera_selection { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--glass-border); padding: 0.5rem; border-radius: 4px; margin-bottom: 10px; width: 100%; }

.scan-result-box {
    margin-top: 1.5rem;
    text-align: center;
    min-height: 60px;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        height: auto;
    }
    .sidebar {
        width: 100%;
        padding: 1rem;
        display: flex;
        overflow-x: auto;
    }
    .sidebar-links {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }
    .sidebar-links li a {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    .sidebar-links li a.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        border-radius: 8px 8px 0 0;
        background: linear-gradient(0deg, rgba(99, 102, 241, 0.2), transparent);
    }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .nav-links { display: none; } /* Could add hamburger in real app */
    .glass-nav { padding: 1rem; }
}


@media (max-width: 600px) {
    .nav-links { display: none; } /* Could add hamburger in real app */
    .glass-nav { padding: 1rem; }
}
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Section Title */
.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    color: #93c5fd;
}

/* Event Card */
.event-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.event-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-size: 22px;
    color: #60a5fa;
    margin-bottom: 10px;
}

.event-content p {
    margin: 5px 0;
    color: #cbd5e1;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #22c55e;
    margin-top: 10px;
}

/* Button */
.book-btn {
    margin-top: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Responsive */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }

    .event-image {
        width: 100%;
        height: 200px;
    }
}
/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cart-content {
    background: #0f172a;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-btn {
    cursor: pointer;
    font-size: 22px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
}

.remove-btn {
    background: crimson;
    border: none;
    padding: 5px 10px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer {
    margin-top: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 10px;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}
/* ===== GRID LAYOUT ===== */
.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* ===== CARD ===== */
.event-card {
   
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ===== IMAGE ===== */
.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* ===== BODY ===== */
.event-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ===== HEADER ===== */
.event-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.event-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

/* ===== ICON BOX ===== */
.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0,123,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.feature-list li {
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== QUANTITY SECTION ===== */
.qty-wrapper {
    margin-bottom: 15px;
}

.qty-wrapper label {
    font-weight: 600;
    font-size: 0.9rem;
}

.qty-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.qty-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* ===== BUTTON ===== */
.book-btn,
.btn-primary {
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.book-btn {
    background: var(--primary-color);
    color: #fff;
}

.book-btn:hover {
    background: #0056b3;
}

/* ===== LOGIN BUTTON STYLE ===== */
.btn-primary-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== PRICE ===== */
.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #28a745;
    margin: 8px 0;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .event-cards-grid {
        grid-template-columns: 1fr;
    }

    .event-card img {
        height: 180px;
    }
}