﻿/* layout.css - sidebar adjustments */
.custom-sidebar {
    width: 250px;
    background-color: var(--ess-primary);
    min-height: 100vh;
    transition: all 0.3s;
    font-size: 14px; /* <-- set globally for sidebar links */
}

#wrapper.toggled .custom-sidebar {
    margin-left: -250px;
}

.custom-sidebar {
    transition: margin 0.3s ease;
}

.sidebar-heading {
    text-align: center;
    font-size: 1.4rem; /* slightly smaller */
    letter-spacing: 1px;
    background-color: #004D45;
    padding: 12px 10px; /* smaller, fixed height */
    border-bottom: 2px solid var(--ess-secondary);
    color: white;
    font-weight: bold;
    line-height: 1.2; /* ensures text vertically centered */
}

/*#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 83, 78, 0.7);*/ /* your theme color */
    /*display: none;
    z-index: 9999;
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}*/

/*.sidebar-heading {
    font-size: 1.4rem;*/ /* smaller than 1.8rem */
    /*text-align: center;
    letter-spacing: 1px;
    background-color: #004D45;
    padding: 12px 10px;*/ /* reduce vertical padding */
    /*border-bottom: 2px solid var(--ess-secondary);
    color: white;
    font-weight: bold;
}*/

.list-group-item,
.sidebar-sublink {
    border: none;
    color: white;
    background-color: var(--ess-primary);
    padding: 10px 16px; /* same height for all menus */
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-sublink {
    padding-left: 40px; /* only extra left padding */
    background-color: #00695C;
}

    .list-group-item:hover,
    .list-group-item.active,
    .sidebar-sublink:hover,
    .sidebar-sublink.active {
        background-color: var(--ess-secondary);
        color: white;
    }

/*.list-group-item {
    border: none;
    color: white;
    background-color: var(--ess-primary);
    font-size: 14px;*/ /* same as sidebar */
    /*padding: 0.5rem 1rem;*/ /* slightly smaller padding */
/*}

    .list-group-item:hover,
    .list-group-item.active {
        background-color: var(--ess-secondary);
        color: white;
    }

.sidebar-sublink {
    padding-left: 30px;*/ /* slightly smaller indent */
    /*background-color: #00695C;
    font-size: 13px;*/ /* slightly smaller for sublinks */
/*}*/

/*.custom-sidebar {
    width: 250px;
    background-color: var(--ess-primary);
    min-height: 100vh;
    transition: all 0.3s;
}

#wrapper.toggled .custom-sidebar {
    margin-left: -250px;
}

.sidebar-heading {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 1px;
    background-color: #004D45;
    padding: 20px 10px;
    border-bottom: 2px solid var(--ess-secondary);
    color: white;
    font-weight: bold;
}

.list-group-item {
    border: none;
    color: white;
    background-color: var(--ess-primary);
}

    .list-group-item:hover,
    .list-group-item.active {
        background-color: var(--ess-secondary);
        color: white;
    }

.sidebar-sublink {
    padding-left: 40px;
    background-color: #00695C;
}*/

#page-content-wrapper {
    flex: 1;
    padding-left: 15px;
}

@media (max-width: 992px) {
    .custom-sidebar {
        font-size: 13px; /* slightly smaller on mobile */
    }

    .sidebar-heading {
        font-size: 1.2rem;
        padding: 10px 5px;
    }
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}