/* ===========================
   SIDEBAR ONLY (SCOPED CSS)
   =========================== */

.sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* School Name */
.sidebar .brand-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar .brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Sidebar Links */
.sidebar .nav-link {
    padding: 1rem 1.5rem !important;
    transition: background-color 0.3s ease;
    color: #fff;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active main menu */
.sidebar .nav-link.active {
    background-color: #0d6efd;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #fff;
}

/* Submenu */
.sidebar .dropdown-menu {
    border-radius: 10px;
}

/* Active submenu */
.sidebar .dropdown-item.active-sub {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

/* Logout button */
.sidebar .logout-link {
    background-color: #dc3545 !important;
    text-align: center;
    margin-top: auto;
}

.sidebar .logout-link:hover {
    background-color: darkred !important;
}

/* ===========================
   MOBILE FIX (SIDEBAR ONLY)
   =========================== */
@media (max-width: 991.98px) {

    /* Force submenu to open downward instead of right */
    .sidebar .dropend > .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin-left: 0 !important;
        width: 100%;
    } 

    /* Remove arrow rotation issue */
    .sidebar .dropend > .nav-link::after {
        transform: rotate(90deg);
    }
    .sidebar .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
}
.app-footer{
    display: none;
}
}
