/* ==========================================
   ADMIN STYLES
   ========================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
}

/* ===== ADMIN NAV ===== */
.admin-nav {
    background: #1a1a2e;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-brand {
    font-size: 20px;
    font-weight: bold;
}
.nav-brand i { color: #ffd700; }
.nav-brand small { font-size: 12px; color: #aaa; }

.nav-menu a {
    color: #ddd;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    transition: 0.3s;
}
.nav-menu a:hover {
    background: #2a2a4e;
    color: white;
}
.nav-menu a i { margin-right: 5px; }

.nav-user {
    color: #ffd700;
    font-weight: bold;
}

/* ===== ADMIN CONTENT ===== */
.admin-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 40px;
    color: #1a1a2e;
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a2e;
}
.stat-info p { color: #666; font-size: 14px; }
.stat-sub { font-size: 12px; color: #999; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.dashboard-card h3 {
    margin-bottom: 15px;
    color: #1a1a2e;
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}
.table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}
.table tr:hover { background: #f8f9fa; }

/* ===== BADGES ===== */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge-active { background: #28a745; color: white; }
.badge-inactive { background: #dc3545; color: white; }
.badge-expired { background: #6c757d; color: white; }
.badge-suspended { background: #ffc107; color: black; }

/* ===== BUTTONS ===== */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-primary { background: #1a1a2e; color: white; }
.btn-primary:hover { background: #2a2a4e; }

.btn-success { background: #28a745; color: white; }
.btn-warning { background: #ffc107; color: black; }
.btn-danger { background: #dc3545; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-info { background: #17a2b8; color: white; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== GAME CHECKBOXES ===== */
.game-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header i {
    font-size: 50px;
    color: #ffd700;
}
.login-header h2 { color: #1a1a2e; }
.login-header p { color: #666; }

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
}

/* ===== URL INPUT ===== */
.url-input {
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 11px;
    background: #f8f9fa;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h1 { color: #1a1a2e; }

/* ===== CARD ===== */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.card-body { padding: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .admin-nav { flex-wrap: wrap; gap: 10px; }
    .nav-menu { display: flex; flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}