/* ===== Global Styles ===== */
* {
    font-family: 'Battambang', 'Segoe UI', sans-serif;
}

.bayon-regular {
    font-family: 'Bayon', sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background: #f0f2f5;
}

.bg-dark-purple {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #f2994a, #f2c94c) !important;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #2196F3, #1565C0) !important;
}

/* ===== Cards ===== */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 12px 16px;
}

/* ===== Form Inputs ===== */
.prize-inputs .form-control {
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
}

.prize-inputs .form-control:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}

/* ===== Data Table ===== */
#resultsTable {
    font-size: 0.9rem;
}

#resultsTable th {
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#resultsTable td {
    vertical-align: middle;
}

.num-cell-2d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e53935, #c62828);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.num-cell-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    border-radius: 18px;
    background: linear-gradient(145deg, #1565C0, #0D47A1);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== Action Buttons ===== */
.btn-action {
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ===== Quick Preview ===== */
.mini-poster {
    min-height: 200px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .prize-inputs .form-control {
        font-size: 1rem;
    }
    
    #resultsTable {
        font-size: 0.75rem;
    }
    
    .num-cell-2d {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .num-cell-3d {
        min-width: 38px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* ===== Toast ===== */
.toast {
    border-radius: 12px;
}

/* ===== Loading Spinner ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
