﻿:root {
    --primary-bg: #f4f4f9;
    --header-red: #d32f2f;
    --yellow-acc: #ffc107;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-white: #ffffff;
    --ticket-bg: #ffffff;
    --ticket-border: #444;
}

body {
    font-family: 'Outfit', sans-serif;
    background: url('https://w0.peakpx.com/wallpaper/559/313/HD-wallpaper-grass-bokeh-blurred-green-background.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-white);
}

.main-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Keep Admin Panel Narrow (As requested) */
.admin-mode .main-wrapper {
    max-width: 600px;
}

.game-header {
    background: linear-gradient(135deg, #ff1a1a 0%, #d50000 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 8px solid var(--yellow-acc);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

/* ... header styles kept same ... */

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .ticket-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 15px;
        padding: 10px;
    }
}

.game-header::before,
.game-header::after {
    content: '🪶';
    position: absolute;
    font-size: 3rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.game-header::before {
    left: 20px;
}

.game-header::after {
    right: 20px;
    transform: translateY(-50%) scaleX(-1);
}

@media (max-width: 768px) {

    .game-header::before,
    .game-header::after {
        display: none;
    }

    .game-header {
        padding: 20px 10px;
    }
}

.game-header h1 {
    font-weight: 900;
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.timer-section {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin: 10px;
}

.timer-box {
    text-align: center;
}

.timer-box small {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}

.timer-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--header-red);
    padding: 5px 15px;
    border-radius: 8px;
    min-width: 60px;
    border: 2px solid var(--yellow-acc);
}

.info-banner {
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

.info-box {
    background: var(--header-red);
    padding: 10px;
    border-radius: 30px;
    border: 2px solid var(--yellow-acc);
    font-weight: 700;
    width: 48%;
    text-align: center;
}

.btn-check-tickets {
    background: var(--header-red);
    color: white;
    width: 80%;
    margin: 10px auto;
    display: block;
    border: 3px solid var(--yellow-acc);
    border-radius: 20px;
    font-weight: 800;
    padding: 12px;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.btn-check-tickets:hover {
    transform: scale(1.05);
    color: var(--yellow-acc);
}



.ticket-card {
    background: var(--ticket-bg);
    border: 2px solid var(--ticket-border);
    border-radius: 12px;
    overflow: hidden;
    color: #333;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Notches removed as per user request to remove "dark big dot" */
/* 
.ticket-card::before,
.ticket-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.ticket-card::before {
    left: -12px;
    box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.2);
}

.ticket-card::after {
    right: -12px;
    box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.2);
}
*/

.ticket-card.booked {
    filter: grayscale(0.5);
    background: #f9f9f9;
}

.ticket-card.booked::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: 900;
    color: rgba(211, 47, 47, 0.3);
    border: 5px solid rgba(211, 47, 47, 0.3);
    padding: 5px 20px;
    border-radius: 10px;
    z-index: 10;
    pointer-events: none;
}

.ticket-header {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #999;
}

.ticket-header span:first-child {
    background: var(--yellow-acc);
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.ticket-body table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ticket-body td {
    width: 11.11%;
    border: 1px solid #ddd;
    text-align: center;
    height: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #2c3e50;
    position: relative;
}

.ticket-body td:empty {
    background-color: #fcfcfc;
}

/* Authentic "Stamp" effect for called numbers */
.ticket-body td.called::after,
.mini-ticket-cell.called::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 2px solid rgba(211, 47, 47, 0.8);
    border-radius: 50%;
    z-index: 2;
}

.ticket-body td.called,
.mini-ticket-cell.called {
    color: var(--header-red);
    background: rgba(211, 47, 47, 0.05);
}

.ticket-footer {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    border-top: 2px dashed #999;
}

.btn-book {
    background: var(--header-red);
    color: white;
    font-size: 0.8rem;
    padding: 6px 20px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-block;
}

.btn-book:hover {
    background: #b71c1c;
    color: #fff;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

/* Live Section */
.status-bar {
    text-align: center;
    background: var(--glass-bg);
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: black;
}

.last-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.number-circle {
    width: 50px;
    height: 50px;
    background: var(--header-red);
    border: 3px solid var(--yellow-acc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.numbers-board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 10px;
}

.board-number {
    aspect-ratio: 1;
    background: var(--header-red);
    border: 1px solid var(--yellow-acc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: default;
}

.board-number.called {
    background: var(--yellow-acc);
    color: #333;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.called-list-container {
    background: rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.called-numbers-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.called-mini-ball {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff9800);
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: ballPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ballPop {
    0% {
        transform: scale(0);
        rotate: -180deg;
    }

    100% {
        transform: scale(1);
        rotate: 0deg;
    }
}

.prize-claims {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.btn-prize {
    background: var(--header-red);
    border: 4px solid var(--yellow-acc);
    color: white;
    font-weight: 800;
    padding: 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    box-shadow: 0 4px 0px #990000;
    transition: all 0.1s;
}

.btn-prize:active {
    box-shadow: 0 0px 0px #990000;
    transform: translateY(4px);
}

/* Admin Dashboard */
.admin-card {
    background: #e0f2f1;
    color: #333;
    margin: 15px;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.admin-header {
    background: #00838f !important;
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.admin-section-title {
    background: #f8bbd0;
    padding: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    border-bottom: 2px solid #ec407a;
}

.admin-body {
    background: #76ff03;
    padding: 15px;
}

.admin-body table td,
.admin-body table th {
    padding-left: 10px !important;
}

.admin-input {
    border-radius: 0;
    border: 1px solid #ccc;
    text-align: center;
    margin-bottom: 10px;
}

.admin-save-btn {
    background: #ff3d00;
    color: white;
    border: none;
    padding: 5px 20px;
    border-top: 3px solid #ffcc0c;
    border-radius: 5px;
    font-weight: bold;
}

.button-group-gap {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Multi-ticket Selection Styling */
.ticket-selection-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.selection-item {
    aspect-ratio: 1;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #333;
}

.selection-item:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.selection-item.selected {
    background: var(--header-red);
    color: white;
    border-color: var(--yellow-acc);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.selection-item.booked {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.board-number.last-called {
    background: #ffffff !important;
    color: #ff1a1a !important;
    transform: scale(1.3);
    box-shadow: 0 0 20px #ffffff;
    animation: flash 1s infinite alternate;
    z-index: 10;
}

@keyframes flash {
    from {
        opacity: 1;
        transform: scale(1.3);
    }

    to {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Mini Ticket Styles for Search */
.mini-ticket {
    max-width: 350px;
    margin: 0 auto;
    border: 2px solid var(--ticket-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mini-ticket-row {
    display: flex;
}

.mini-ticket-cell {
    flex: 1;
    aspect-ratio: 1;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #333;
    position: relative;
    background: #fff;
}

.mini-ticket-cell.called {
    background: #d63031;
    color: #fff;
}

/* Enhanced Modal Styles */
.swal2-popup {
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 4px solid var(--yellow-acc);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

.swal2-title {
    background: var(--header-red);
    color: white !important;
    padding: 20px !important;
    margin: 0 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    font-size: 1.5rem !important;
    border-bottom: 4px solid var(--yellow-acc);
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.swal2-html-container {
    margin: 20px 10px 0 !important;
    overflow-x: hidden !important;
}

.swal2-input {
    border: 2px solid #ddd !important;
    border-radius: 12px !important;
    font-weight: 700;
    color: #333;
    transition: all 0.3s;
    font-size: 1rem !important;
    padding: 12px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    width: 90% !important;
    margin: 10px auto !important;
}

.swal2-input:focus {
    border-color: var(--header-red) !important;
    box-shadow: 0 0 0 4px rgba(255, 26, 26, 0.1) !important;
}

.swal2-actions {
    margin: 20px 0 25px !important;
}

.swal2-confirm {
    background: var(--header-red) !important;
    border: 2px solid var(--yellow-acc) !important;
    border-radius: 50px !important;
    padding: 12px 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 26, 26, 0.3) !important;
    font-size: 1rem !important;
}

.swal2-confirm:hover {
    transform: scale(1.05);
    background: #d50000 !important;
}

.swal2-cancel {
    background: #333 !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

/* Login Page Stylings */
.login-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 32px !important;
}

/* Floating Bubble Animation */
.floating-bubble-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.floating-bubble {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #ffeb3b, #fbc02d);
    border: 8px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 235, 59, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    font-weight: 900;
    color: #d50000;
    text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.5);
    animation: floatUpFade 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
    }

    15% {
        opacity: 1;
        transform: scale(1.1) translateY(0);
    }

    25% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1) translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: scale(1.5) translateY(-100px);
    }
}