/* Admin Dashboard Styles - Season 2: Premium UI */

.admin-dashboard-container {
    max-width: var(--content-w);
    margin: 40px auto;
    padding: 0 var(--content-pad);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff 0%, #ff5500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tabs Navigation */
.admin-tabs-nav {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    overflow-x: auto;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: var(--dim-text);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.admin-tab-btn.active {
    color: #000;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

/* Tab Panel Content */
.admin-tab-panel {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.admin-panel-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

/* Section grids & cards */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    transition: 0.2s;
}

.admin-card:hover {
    border-color: rgba(255, 85, 0, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* Forms */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dim-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-input, .admin-select {
    background: #0f1015;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.admin-input:focus, .admin-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.15);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Lists and Tables */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--dim-text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

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

/* User & Avatar badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-badge .steam-id {
    font-size: 0.75rem;
    color: var(--dim-text);
    font-family: monospace;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.free {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-badge.busy {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.status-badge.offline {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.status-badge.banned {
    background: rgba(244, 67, 54, 0.15);
    color: #ff4444;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Actions cell buttons gap */
.actions-cell {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Login box style override (re-design) */
.admin-login-card {
    max-width: 420px;
    margin: 100px auto;
    background: var(--card-bg);
    border: 1px solid rgba(255, 85, 0, 0.2);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 85, 0, 0.1);
    animation: slideInUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes slideInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.admin-login-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.admin-login-sub {
    color: var(--dim-text);
    font-size: 0.85rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.password-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.password-wrapper input {
    width: 100%;
    background: #0f1015;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 45px 14px 16px;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    transition: 0.2s;
    font-family: monospace;
}

.password-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.2);
}

.toggle-pass-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--dim-text);
    cursor: pointer;
    font-size: 1.1rem;
}

.admin-auth-error {
    color: #ff4444;
    font-size: 0.85rem;
    min-height: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.shake {
    animation: shakeAnim 0.4s ease;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* User moderation list Search Box */
.search-box-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Rollback stage warning alert box */
.warning-alert-box {
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #ff6b6b;
}

.warning-alert-box h4 {
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.warning-alert-box p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.btn.danger {
    background: #f44336;
    color: white;
}

.btn.danger:hover {
    background: #d32f2f;
}

/* Small helper utilities */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-10 { display: flex; gap: 10px; }
