/* Play Bazaar - Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f23;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #ff6b6b;
    transition: color 0.3s;
}

a:hover {
    color: #ff4757;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-weight: 500;
    transition: all 0.3s;
}

.navbar .nav-link:hover {
    color: #ff6b6b !important;
}

.navbar .nav-link.active {
    color: #ff6b6b !important;
}

.dropdown-menu {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu .dropdown-item {
    color: #e0e0e0;
    transition: all 0.3s;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.02)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #1e1e3a;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.card-header {
    font-size: 1.1rem;
    padding: 12px 20px;
}

.card-body {
    padding: 15px 20px;
    color: #e0e0e0;
}

/* Tables */
.table {
    color: #e0e0e0;
    margin-bottom: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255,255,255,0.02);
}

.table-hover > tbody > tr:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #fff;
}

.table thead th {
    border-bottom: 2px solid rgba(255,255,255,0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td, .table th {
    vertical-align: middle;
    padding: 10px 12px;
}

/* Badge results */
.result-number {
    font-size: 1.1rem;
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 55px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
}

footer a:hover {
    color: #ff6b6b !important;
}

/* Form styles */
.form-control, .form-select {
    background: #2d2d44;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    background: #2d2d44;
    border-color: #dc3545;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

.form-control::placeholder {
    color: #888;
}

/* Alert styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* List group */
.list-group-item {
    background: #1e1e3a;
    border-color: rgba(255,255,255,0.05);
    color: #e0e0e0;
}

.list-group-item:hover {
    background: #2d2d44;
}

/* Button styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f23;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Chart table */
#chart-table td {
    text-align: center;
    padding: 5px 8px;
    font-size: 0.9rem;
}

#chart-table th {
    text-align: center;
    font-size: 0.8rem;
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .result-number {
        font-size: 0.9rem;
        padding: 3px 10px;
    }
}

/* Custom animation for loading */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.pending-pulse {
    animation: pulse 1.5s infinite;
}

/* Print styles */
@media print {
    .navbar, footer, .whatsapp-float, .btn {
        display: none !important;
    }
}
