﻿:root {
    --ac-gold: #ffbd59;
    --ac-gold-soft: rgba(255, 189, 89, 0.35);
    --ac-white: #f7f7f7;
    --ac-muted: #9f9f9f;
    --ac-border-soft: rgba(255, 255, 255, 0.25);
    --ac-border-subtle: rgba(255, 255, 255, 0.14);
    /* Active menu background */
    --ac-active-bg: #FFCC001A;
    --ac-active-border: #FFCC00;
}

/* BODY BACKGROUND (stone texture) */
.admin-body {
    min-height: 100vh;
    margin: 0;
    background: #050607 url("../../images/Background/bg.jpg") center center / cover fixed no-repeat;
    color: var(--ac-white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Wrapper so content spans more of the screen */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 16px 24px;
}

/* Two-card layout (sidebar + main) */
.admin-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1680px;
}

/* ===== LEFT CARD: SIDEBAR ================================= */

.admin-sidebar {
    border-radius: 26px;
    border: 1px solid #FFFFFF;
    background: #FFFFFF1A;
    box-shadow: 0 24px 60px rgba(0,0,0,0.65);
    overflow: hidden;
    height: calc(100vh - 48px);
    backdrop-filter: none;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 26px 24px;
}

/* logo + title */
.sidebar-logo-main {
    width: 140px;
}

.sidebar-header {
    margin-bottom: 18px;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 6px;
}

/* divider line */
/* Remove unwanted top divider */
.sidebar-divider:not(.sidebar-divider-footer) {
    display: none;
}


/* menu links */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    color: var(--ac-muted);
    padding: 12px 16px;
    border-radius: 6px; /* rectangle (NO MORE PILL) */
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.18s ease;
    background: transparent; /* no background by default */
}

    /* Hover (NO PILL, NO BORDER) */
    .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--ac-white);
    }

    .sidebar-link.active {
        background: #FFCC001A; /* soft gold background */
        border: none !important;
        border-radius: 6px !important;
        color: #FFBD59 !important; /* ← GOLD TEXT COLOR */
        box-shadow: none !important;
        height: 41px;
        display: flex;
        align-items: center;
    }



/* footer block */
/* Remove the unwanted top divider above the logout button */
.sidebar-footer {
    border-top: none !important;
    padding-top: 0 !important;
}


.logout-btn {
    width: 214px;
    height: 55px;
    border-radius: 6px;
    border: 1px solid #FFBD59; /* new gold */
    color: #FFBD59;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* center inside sidebar */
    transition: all 0.18s ease;
}

    /* Hover */
    .logout-btn:hover {
        background: #FFBD59;
        color: #1b160c; /* dark text for contrast */
        box-shadow: 0 10px 20px rgba(0,0,0,0.45);
    }

/* Divider below logout button */
.sidebar-divider-footer {
    margin: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Spacing between dashboard title and modules */
.admin-title {
    margin-bottom: 40px !important;
}


/* powered by logos */
.powered-label {
    text-transform: capitalize;
}


.powered-img {
    width: 86px;
    opacity: 0.98;
}

/* ===== RIGHT CARD: MAIN PANEL ============================= */

.admin-main {
    border-radius: 26px;
    border: 1px solid #FFFFFF;
    background: #FFFFFF1A;
    box-shadow: 0 24px 60px rgba(0,0,0,0.65);
    position: relative;
    overflow: hidden; /* <-- THIS IS CORRECT */
    height: calc(100vh - 48px); /* ENSURES panel height is full */
}



.admin-main-inner {
    padding: 36px 44px;
}

/* slim gold bar on right */


/* ===== RESPONSIVE ======================================== */

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 20px;
    }

    .admin-main-inner {
        padding: 28px 30px;
    }
}

@media (max-width: 900px) {
    .admin-wrapper {
        padding: 14px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-main,
    .admin-sidebar {
        height: auto;
    }

        
}

@media (max-width: 576px) {
    .sidebar-inner {
        padding: 22px 18px 18px;
    }

    .admin-main-inner {
        padding: 20px 18px;
    }
}

/* Logo size adjustments */
.sidebar-logo-main {
    width: 164px !important;
    height: 164px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.cybernest-logo {
    width: 110px !important;
    height: 55px !important;
    object-fit: contain;
    display: block;
}

.flow-logo {
    width: 82px !important;
    height: 25px !important;
    object-fit: contain;
    display: block;
}

.admin-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    margin: 0 auto;
}

/* Dashboard modules */
.dashboard-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 0;
}

.module-card {
    width: 190px;
    height: 260px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: white;
    text-align: center;
    transition: 0.2s;
}

    .module-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 4px 18px rgba(0,0,0,0.4);
    }

