/* ========================================
   LUCKY BET CASINO - GAMBLING THEME
   ======================================== */

/* Color Palette:
* Primary: #2c3e50 (Deep Blue)
* Secondary: #34495e (Lighter Blue)
* Text Primary: #ecf0f1 (Off-White)
* Text Secondary: #bdc3c7 (Silver)
* Accent Primary: #3498db (Bright Blue)
* Accent Secondary: #2980b9 (Darker Bright Blue)
* Border Color: rgba(189, 195, 199, 0.2) (Silver with alpha)
* Shadow Color: rgba(52, 152, 219, 0.2) (Bright Blue with alpha)
* Success Color: #2ecc71
* Error Color: #e74c3c
*/

/* === RESET & GENERAL === */
:root {
    --another-bg:papayawhip;
    --primary-bg: #f4f6f8; /* Soft Gray */
    --secondary-bg: #ffffff; /* White */
    --text-primary: #333333; /* Charcoal */
    --text-secondary: #555555; /* Medium Gray */
    --accent-primary: #5a7d9a; /* Slate Blue */
    --accent-secondary: #48657c; /* Darker Slate Blue */
    --border-color: #e1e4e8; /* Light Gray Border */
    --shadow-color: rgba(0, 0, 0, 0.05);
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVBAR === */
.navbar {
    background: var(--secondary-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--accent-secondary);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-vibrant);
}

/* === HERO SECTION === */
.hero {
    background: var(--secondary-bg);
    color: var(--text-primary);
    text-align: center;
    padding: 60px 5px;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* === RECENT RESULTS SECTION === */
.recent-results {
    background: var(--secondary-bg);
    border-radius: 8px;
    margin: 30px 0;
    padding: 0;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.results-header {
    background-color: var(--accent-primary);
    color: white;
    padding: 15px;
    text-align: center;
}

.results-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.results-table-header {
    display: flex;
    background-color: #f1f1f1;
    color: var(--text-secondary);
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.results-table-header .game-name-header { flex: 2; text-align: left; }
.results-table-header .date-header { flex: 1; text-align: center; }

.results-row {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
}
.results-row:last-of-type { border-bottom: none; }
.results-row .game-info { flex: 2; text-align: left; }
.results-row .game-info .game-name { font-weight: bold; font-size: 1.1rem; }
.results-row .game-result { flex: 1; text-align: center; font-weight: bold; font-size: 1.5rem; }

.results-button {
    display: block;
    background-color: #f1f1f1;
    color: var(--accent-primary);
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-top: 1px solid var(--border-color);
}
.results-button:hover { background-color: #e9e9e9; }


/* === CONTENT SECTION === */
.content-section {
    padding: 30px;
    background: var(--secondary-bg);
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.content-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 600;
}

/* === TABLE STYLES === */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.schedule-table th, .schedule-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.schedule-table thead {
    background: var(--accent-primary);
    color: white;
    font-size: 1rem;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.schedule-table tbody tr:hover {
    background-color: #f1f1f1;
}

.schedule-table td:first-child {
    font-weight: bold;
    color: var(--accent-secondary);
}

/* === FORM STYLES === */
.form-container {
    background: transparent;
    padding: 0;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: none;
    border: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(90, 125, 154, 0.25);
}

.btn, button[type="submit"] {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn:hover, button[type="submit"]:hover {
    background: var(--accent-secondary);
}

/* === FOOTER === */
.footer {
    background: var(--secondary-bg);
    color: var(--text-secondary);
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3, .footer-section h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-secondary);
}

.footer-info h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* === WHATSAPP BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* === MOBILE RESPONSIVENESS === */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-menu.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .results-row .game-result { font-size: 1.2rem; }
    .results-header h3 { font-size: 1rem; }
}

/* === ADMIN PANEL SPECIFIC STYLES === */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    font-weight: bold;
}

.message.success { background: var(--success-color); }
.message.error { background: var(--error-color); }
