/* Admin Dashboard Overlay (Glassmorphism) */
#admin-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    /* Hidden by default */
    overflow-y: auto;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

#admin-dashboard.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

.admin-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 40px;
    display: block;
}

.admin-nav .nav-item {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.admin-nav .nav-item:hover,
.admin-nav .nav-item.active {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.btn-logout {
    margin-top: 40px;
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main Content */
.admin-content {
    padding: 20px 0;
}

.panel-section {
    display: none;
}

.panel-section.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.stat-box {
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box h4 {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

/* Project List */
.project-list-item {
    background: rgba(30, 41, 59, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-group {
    display: flex;
    gap: 20px;
}

/* Toggles */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.toggle-input {
    appearance: none;
    width: 40px;
    height: 22px;
    background: #475569;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.toggle-input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-input:checked {
    background: #38bdf8;
}

.toggle-input:checked::after {
    left: 20px;
}

/* Inputs */
.admin-input,
.admin-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    color: white;
    border-radius: 6px;
    margin-bottom: 15px;
}

.btn-save {
    background: #38bdf8;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Utility */
.hidden {
    display: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}