:root {
    --bg-primary: #0a0a0a;
    --text-primary: #e0e0e0;
    --bg-secondary: #111;
    --border-primary: #222;
    --text-muted: #888;
    --bg-hover: #1a1a1a;
    --text-white: #fff;
    --bg-active: #222;
    --bg-tertiary: #151515;
    --border-secondary: #333;
    --gradient-primary: linear-gradient(135deg, #ea6666 0%, #a24b4b 100%);
    --gradient-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-secondary: #666;
    --gradient-card: linear-gradient(135deg, #ea6666 0%, #764ba2 100%);
    --text-transparent: rgba(255, 255, 255, 0.3);
    --bg-card-content: #1a1a1a;
    --color-primary: #ea7166;
    --color-secondary: #764ba2;
    --border-bingo: #ff4444;
    --text-aaa: #aaa;
    --bg-settings: #151515;
    --border-settings: #222;
    --avatar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --avatar-color: white;
    --spinner-border: #222;
    --spinner-top: #ff4444;
    --empty-color: #666;
    --empty-h3: #888;
    --game-title-bg: #151515;
    --game-title-border: #222;
    --modal-bg: #151515;
    --modal-border: #222;
    --modal-header-border: #222;
    --modal-h3: #fff;
    --modal-close: #aaa;
    --modal-close-hover: #fff;
    --suspend-bg: #1a1a1a;
    --suspend-border: #222;
    --suspend-label: #888;
    --action-menu: #888;
    --action-menu-hover: #fff;
    --table-header-bg: #222;
    --table-header-color: #fff;
    --table-row-bg: #1a1a1a;
    --table-row-color: #e0e0e0;
    --table-row-hover: #222;
    --tab-btn-bg: #1a1a1a;
    --tab-btn-border: #222;
    --tab-btn-color: #666;
    --tab-btn-active-bg: #667eea;
    --tab-btn-active-color: white;
    --tab-btn-active-border: #667eea;
    --form-tab-color: #666;
    --form-tab-active-bg: #667eea;
    --form-tab-active-color: white;
    --form-tab-active-border: #667eea;
    --form-input-border: #222;
    --form-input-bg: #0a0a0a;
    --form-input-color: #e0e0e0;
    --form-input-focus: #667eea;
    --login-hero-bg: linear-gradient(135deg, #ff0000 0%, #ff2f00 100%);
    --login-form-bg: #151515;
    --login-form-border: #222;
    --card-bg: #151515;
    --card-border: #222;
    --card-hover-border: #333;
    --card-content-bg: #1a1a1a;
    --card-title: #fff;
    --card-author: #666;
    --btn-secondary-bg: #222;
    --btn-secondary-hover: #333;
    --sidebar-btn-color: #888;
    --sidebar-btn-hover-bg: #1a1a1a;
    --sidebar-btn-hover-color: #fff;
    --sidebar-btn-active-bg: #222;
    --sidebar-btn-active-color: #fff;
    --sidebar-bg: #111;
    --sidebar-border: #222;
    --h1-color: #fff;
    --bingo-grid-bg: #151515;
    --bingo-cell-bg: #0a0a0a;
    --bingo-cell-border: #222;
--bingo-cell-active-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--bingo-cell-active-border: #764ba2;
    --bg-dark: #101010;
    --text-light: #f0f0f0;
    --primary-color: #ffffff;
    --secondary-color: #15afc7;
    --accent-gradient: linear-gradient(90deg, rgb(51, 51, 51), #ffffff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-btn {
    padding: 15px 25px;
    background: transparent;
    color: var(--sidebar-btn-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.sidebar-btn:hover {
    background: var(--sidebar-btn-hover-bg);
    color: var(--sidebar-btn-hover-color);
}

.sidebar-btn.active {
    background: var(--sidebar-btn-active-bg);
    color: var(--sidebar-btn-active-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--btn-secondary-bg);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--btn-secondary-hover);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary {
    background: #222;
    color: white;
}

.btn-secondary:hover {
    background: #333;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #151515;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #222;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-color: #333;
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ea6666 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.card-content {
    padding: 20px;
    background: #1a1a1a;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.card-author {
    font-size: 14px;
    color: #666;
}

/* Login Form */
.login-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.login-form {
    background: #151515;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
}

.login-hero {
    background: var(--login-hero-bg);
    padding: 60px;
    border-radius: 20px;
    color: white;
}

.login-hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #222;
    border-radius: 50px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.form-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #222;
    border-radius: 50px;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-tab.active {
    background: var(--spinner-top);
    color: white;
    border-color: var(--spinner-top);
}

/* Bingo Creator */
.creator-container {
    max-width: 900px;
    margin: 0 auto;
}

.creator-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.creator-sounds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.bingo-grid {
    display: grid;
    gap: 10px;
    margin: 30px 0;
    background: #151515;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid var(--border-bingo);
}

.bingo-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bingo-grid.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.bingo-cell {
    aspect-ratio: 1;
    background: #0a0a0a;
    border: 2px solid #222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    text-align: center;
}

.bingo-cell input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 16px;
}

.bingo-cell input:focus {
    outline: none;
}

.bingo-cell.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
    animation: cellClick 0.3s ease;
}

@keyframes cellClick {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }
}

/* Table */
.data-table {
    width: 100%;
    background: #151515;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}

.table-header {
    background: #222;
    color: #fff;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    font-weight: 700;
    font-size: 16px;
}

.table-header-bingo {
    background: #222;
    color: #fff;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    font-weight: 700;
    font-size: 16px;
}

.table-row-bingo {
    color: #e0e0e0;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    margin: 2px 0;
}



.table-row {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.table-row:hover {
    background: #222;
    transform: translateX(5px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 30px;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 50px;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

/* Settings */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    background: #151515;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
}

.settings-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spinner */
.spinner {
    border: 4px solid var(--border-secondary);
    border-top: 4px solid var(--tab-btn-active-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #888;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.game-title {
    background: #151515;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #222;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.hidden {
    display: none !important;
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #151515;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #222;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons button {
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.action-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#suspend-options {
    margin-top: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #222;
}

#suspend-options label {
    display: block;
    margin-bottom: 10px;
    color: #888;
}

/* Three dots menu */
.action-menu {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    text-align: center;
    padding: 5px;
}

.action-menu:hover {
    color: #fff;
}