/* =====================================================
   Admin Panel — Design System
   ===================================================== */

.glass-panel {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Nav Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9CA3AF;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: #F3F4F6; }
.nav-item.active { background: rgba(59,130,246,0.1); color: #3B82F6; }

/* View System */
.view-content { display: none; animation: viewFade 0.25s ease-out; }
.view-content.active { display: block; }
@keyframes viewFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.875rem;
}
.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-label { font-size: 0.6875rem; color: #9CA3AF; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1.2; }

/* Admin Input */
.admin-input {
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    font-size: 0.8125rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.admin-input::placeholder { color: #6B7280; }

.admin-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

/* Table Rows */
#newsTableBody tr,
#subsTableBody tr,
#usersTableBody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.1s;
}
#newsTableBody tr:hover,
#subsTableBody tr:hover,
#usersTableBody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Action Button */
.action-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}
.action-btn-danger { background: rgba(239,68,68,0.1); color: #EF4444; }
.action-btn-danger:hover { background: rgba(239,68,68,0.2); }
.action-btn-edit { background: rgba(59,130,246,0.1); color: #3B82F6; }
.action-btn-edit:hover { background: rgba(59,130,246,0.2); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
