.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 20px;
    border: 2px solid #1e3a5f;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo h1 {
    font-size: 2rem;
    color: #fff;
}

.login-logo span {
    color: #ffd700;
}

.login-title {
    text-align: center;
    color: #9ca3af;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer a {
    color: #1e3a5f;
    text-decoration: none;
}

.admin-body {
    display: flex;
    min-height: 100vh;
    background: #0f0f1a;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-right: 1px solid #374151;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.sidebar-logo span {
    color: #ffd700;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav li {
    display: block;
    width: 100%;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: rgba(233, 69, 96, 0.1);
    color: #fff;
}

.sidebar-nav li.active a {
    background: rgba(233, 69, 96, 0.2);
    color: #1e3a5f;
    border-left-color: #1e3a5f;
}

.nav-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #374151;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
}

.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    background: #1f2937;
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.topbar-title {
    flex: 1;
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}

.topbar-info {
    color: #9ca3af;
}

.admin-content {
    padding: 25px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #374151;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.admin-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #374151;
}

.card-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #374151;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-import {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    color: #fff;
}

.action-add {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
}

.action-game {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    color: #fff;
}

.action-view {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

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

.form-group label {
    display: block;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #0f0f1a;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1e3a5f;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-hint {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
}

.btn-success {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    color: #000;
}

.btn-block {
    width: 100%;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #1e3a5f;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #374151;
    color: #fff;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.result-highlight {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.3rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-failed,
.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-cloudflare {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.message-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .admin-overlay.active {
        display: block;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .topbar-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .admin-content {
        padding: 15px;
    }
    
    .admin-card {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
}
