﻿/* ============================================================
   ADMIN LAYOUT WRAPPER
============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f4f6f8;
}


/* ============================================================
   FIXED SIDEBAR
============================================================ */
.admin-sidebar {
    width: 240px;
    background: #1c2a39;
    color: white;
    padding: 25px 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 9999;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
}


/* ============================================================
   SIDEBAR LINKS
============================
    display: block;
    color: #d6d6d6;
    text-decoration: none;
    padding: 12px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: 0.2s ease;
}

    .admin-sidebar a:hover {
        background: #263445;
        color: #fff;
    }

    .admin-sidebar a.logout {
        color: #ffb3b3;
    }


/* ============================================================
   MAIN CONTENT AREA
   IMPORTANT: allow sticky headers inside content
============================================================ */
.admin-main {
    flex: 1;
    padding: 40px;
    margin-left: 240px; /* Push content beside sidebar */

    overflow: visible !important; /* <— ALLOWS sticky headers */
    height: auto !important; /* <— Prevent isolated scroll */
}

.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 6px solid #dcdcdc;
    border-top: 6px solid #0c3a23;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


