/* =====================================================
   ADMIN SIDEBAR
   ===================================================== */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 245px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}


    /* =====================================================
   SIDEBAR SCROLLBAR
   ===================================================== */

    .admin-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .admin-sidebar::-webkit-scrollbar-track {
        background: #f8fafc;
    }

    .admin-sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

        .admin-sidebar::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }


/* =====================================================
   SIDEBAR MENU CONTAINER
   ===================================================== */

.admin-admin-sidebar-menu {
    width: 100%;
    padding: 12px 8px 25px 8px;
    box-sizing: border-box;
}


/* =====================================================
   MENU TITLE
   ===================================================== */

.admin-menu-title {
    padding: 13px 14px 8px 14px;
    margin: 0;
    color: #94a3b8;
    /* UPDATED */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}


/* =====================================================
   MENU ITEM
   ===================================================== */

.admin-menu-item {
    position: relative;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin: 3px 0;
    box-sizing: border-box;
    border-radius: 10px;
    color: #334155;
    background: transparent;
    text-decoration: none !important;
    /* UPDATED */
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}


    /* =====================================================
   MENU ICON
   ===================================================== */

    .admin-menu-item .bi {
        width: 22px;
        min-width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 11px;
        color: #64748b;
        font-size: 16px;
        line-height: 1;
        transition: color 0.2s ease, transform 0.2s ease;
    }


    /* =====================================================
   MENU TEXT
   ===================================================== */

    .admin-menu-item span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =====================================================
   HOVER
   ===================================================== */

    .admin-menu-item:hover {
        color: #0d6efd;
        background: #f1f5ff;
        transform: translateX(2px);
    }

        .admin-menu-item:hover .bi {
            color: #0d6efd;
            transform: scale(1.05);
        }


    /* =====================================================
   ACTIVE MENU
   ===================================================== */

    .admin-menu-item.active {
        color: #0d6efd !important;
        background: #eef4ff !important;
        font-weight: 600;
        box-shadow: inset 3px 0 0 #0d6efd;
    }

        .admin-menu-item.active .bi {
            color: #0d6efd !important;
        }


        /* =====================================================
   ACTIVE MENU BEFORE LINE
   ===================================================== */

        .admin-menu-item.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 3px;
            height: 24px;
            transform: translateY(-50%);
            background: #0d6efd;
            border-radius: 0 4px 4px 0;
        }


/* =====================================================
   LOGO AREA
   ===================================================== */

.admin-admin-sidebar-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
    overflow: hidden;
}


    /* =====================================================
   LOGO ICON CONTAINER
   ===================================================== */

    .admin-admin-sidebar-logo .admin-logo-icon {
        width: 55px;
        height: 68px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
        overflow: hidden;
    }


/* =====================================================
   ACTUAL LOGO
   ===================================================== */

.admin-admin-sidebar-actual-logo {
    width: 55px;
    height: 65px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
}


/* =====================================================
   LOGO TEXT
   ===================================================== */

.admin-admin-sidebar-logo .admin-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    max-width: calc(100% - 65px);
    overflow: hidden;
    line-height: 1.1;
}


    /* =====================================================
   INFOTECH TEXT
   ===================================================== */

    .admin-admin-sidebar-logo .admin-logo-text strong {
        display: block;
        color: #0d3b66;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.4px;
        line-height: 1.1;
        white-space: nowrap;
    }


    /* =====================================================
   TRAINING INSTITUTE TEXT
   ===================================================== */

    .admin-admin-sidebar-logo .admin-logo-text span {
        display: block;
        margin-top: 4px;
        color: #6c757d;
        font-size: 7px;
        font-weight: 700;
        letter-spacing: 0.35px;
        line-height: 1;
        white-space: nowrap;
    }


/* =====================================================
   REMOVE OLD LOGO BACKGROUND
   ===================================================== */

.admin-admin-sidebar-logo,
.admin-admin-sidebar-logo .admin-logo-icon {
    background-image: none !important;
}


/* =====================================================
   PAGE CONTENT
   ===================================================== */

.admin-page-content {
    margin-left: 245px;
    width: calc(100% - 245px);
    min-height: calc(100vh - 54px);
    padding: 25px 30px;
    box-sizing: border-box;
    position: relative;
    overflow-x: auto;
}


/* =====================================================
   ADMIN FOOTER
   NORMAL DOCUMENT FLOW
   ===================================================== */

footer.admin-page-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-left: 245px !important;
    width: calc(100% - 245px) !important;
    min-height: 54px !important;
    padding: 17px 20px !important;
    background-color: #212529 !important;
    color: #ffffff !important;
    border: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    z-index: 10 !important;
}


    /* =====================================================
   FOOTER LINKS
   ===================================================== */

    footer.admin-page-footer a {
        color: #ffffff !important;
        text-decoration: none !important;
    }

        footer.admin-page-footer a:hover {
            color: #ffffff !important;
            text-decoration: underline !important;
        }


/* =====================================================
   TABLET
   993px - 1200px
   ===================================================== */

@media (max-width: 1200px) {

    .admin-sidebar {
        width: 220px;
    }

    .admin-page-content {
        margin-left: 220px;
        width: calc(100% - 220px);
        padding: 25px;
    }

    footer.admin-page-footer {
        margin-left: 220px !important;
        width: calc(100% - 220px) !important;
    }
}


/* =====================================================
   SMALL TABLET
   577px - 992px
   ===================================================== */

@media (max-width: 992px) {

    .admin-sidebar {
        width: 75px;
    }

    .admin-page-content {
        margin-left: 75px;
        width: calc(100% - 75px);
        padding: 20px;
    }

    footer.admin-page-footer {
        margin-left: 75px !important;
        width: calc(100% - 75px) !important;
    }


    /*
       Hide logo text on collapsed sidebar
    */

    .admin-admin-sidebar-logo .admin-logo-text {
        display: none;
    }


    .admin-admin-sidebar-logo {
        height: 75px;
        padding: 5px;
    }


        .admin-admin-sidebar-logo .admin-logo-icon {
            width: 55px;
            height: 62px;
        }


    .admin-admin-sidebar-actual-logo {
        width: 52px;
        height: 58px;
    }


    /*
       Center menu items
    */

    .admin-admin-sidebar-menu {
        padding-left: 7px;
        padding-right: 7px;
    }


    .admin-menu-title {
        text-align: center;
        font-size: 8px;
        padding-left: 3px;
        padding-right: 3px;
        overflow: hidden;
    }


    .admin-menu-item {
        justify-content: center;
        padding: 0;
        min-height: 46px;
    }


        .admin-menu-item .bi {
            margin-right: 0;
            font-size: 17px;
        }


        .admin-menu-item span {
            display: none;
        }


        .admin-menu-item.active {
            box-shadow: none;
        }


            .admin-menu-item.active::before {
                display: none;
            }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 576px) {

    .admin-sidebar {
        width: 0;
        border-right: none;
        box-shadow: none;
        overflow: hidden;
    }


    .admin-page-content {
        margin-left: 0;
        width: 100%;
        min-height: calc(100vh - 54px);
        padding: 15px;
    }


    footer.admin-page-footer {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: 54px !important;
        padding: 15px 10px !important;
        font-size: 12px !important;
        line-height: 18px !important;
    }
}


/* =====================================================
   EXTRA SMALL MOBILE
   ===================================================== */

@media (max-width: 400px) {

    .admin-page-content {
        padding: 12px;
    }


    footer.admin-page-footer {
        padding: 14px 8px !important;
        font-size: 11px !important;
        line-height: 17px !important;
    }
}


/* =====================================================
   GLOBAL BOX SIZING
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}
