/* site.css */
/* General Body Styles */
body {
    font-family: Poppins, Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F8F9FA; /* Very light grey-blue background */
    padding-top: 60px; /* Adjust if your navbar height is different */
}

/* Wrapper */
.wrapper {
    width: 100%;
}

/* Sidebar */
#sidebar {
    width: 250px;
    background: #0D1B2A; /* Primary very dark blue */
    color: #fff;
    position: fixed; /* Fixed position */
    top: 56px; /* Same as navbar height */
    left: 0;
    height: calc(100% - 56px); /* Full height minus navbar */
    overflow-y: auto;
    z-index: 1000;
    transition: margin-left 0.3s ease; /* Smooth transition */
    margin-left: -250px; /* Hide sidebar by shifting it left */
}

    /* Show sidebar when 'active' class is added */
    #sidebar.active {
        margin-left: 0;
    }

    /* Sidebar Components */
    #sidebar .components {
        padding: 20px 0;
    }

        /* Main Menu Items */
        #sidebar .components > li > a {
            display: block;
            width: 100%;
            font-size: 1em; /* Default font size */
            color: #fff;
            text-decoration: none;
            padding: 10px 15px; /* Vertical padding: 10px; Horizontal padding: 15px */
            padding-left: 15px; /* Adjust the indentation if needed */
            box-sizing: border-box; /* Include padding in width calculation */
        }

            /* Hover Effects for Main Menu Items */
            #sidebar .components > li > a:hover,
            #sidebar .components > li > a:focus {
                background: #0A2540; /* Darker blue on hover */
                text-decoration: none;
            }

        /* Sub-Menu Items */
        #sidebar .components > li > ul > li > a {
            display: block;
            width: 100%;
            font-size: 0.9em; /* Slightly smaller than main menu */
            color: #fff;
            text-decoration: none;
            padding: 10px 15px;
            padding-left: 30px; /* Indent sub-menus */
            box-sizing: border-box;
            background: #1B263B; /* Default background for sub-menus */
        }

            /* Hover Effects for Sub-Menu Items */
            #sidebar .components > li > ul > li > a:hover,
            #sidebar .components > li > ul > li > a:focus {
                background: #16202A; /* Darker shade on hover */
                text-decoration: none;
            }

        /* Sub-Sub-Menu Items */
        #sidebar .components > li > ul > li > ul > li > a {
            display: block;
            width: 100%;
            font-size: 0.8em; /* Slightly smaller than sub-menu */
            color: #fff;
            text-decoration: none;
            padding: 10px 15px;
            padding-left: 45px; /* Further indent for sub-sub-menus */
            box-sizing: border-box;
            background: #415A77; /* Default background for sub-sub-menus */
        }

            /* Hover Effects for Sub-Sub-Menu Items */
            #sidebar .components > li > ul > li > ul > li > a:hover,
            #sidebar .components > li > ul > li > ul > li > a:focus {
                background: #3A4E6E; /* Darker shade on hover */
                text-decoration: none;
            }

    /* Submenu Transition */
    #sidebar .collapse {
        transition: height 0.3s ease;
    }

/* Content Area */
#content {
    width: 100%;
    padding: 20px;
}

/* Navbar Styles */
.navbar-top {
    background-color: #0D1B2A; /* Primary very dark blue */
}

/* Style the logo inside the navbar */
.navbar-brand .logo {
    height: 40px; /* Adjust as needed */
    width: auto;
}

/* Reduce navbar padding to slim down the navbar height */
.navbar {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* Background color for expanded sub-menus */
#sidebar .components .collapse.show {
    background: #1B263B; /* Secondary dark blue for sub-menus */
}

/* Background color for expanded sub-sub-menus */
#sidebar .components .collapse .collapse.show {
    background: #415A77; /* Accent blue for sub-sub-menus */
}

/* Hover effects for all links */
#sidebar .components a:hover,
#sidebar .components a:focus{
    text-decoration: none;
    color: #fff;
}

/* Custom Styles for the Menu Button */
.custom-menu-button {
    background-color: #0D1B2A; /* Primary very dark blue background */
    border: none; /* Remove border */
    color: #fff; /* White color for icon */
    outline: none; /* Remove outline on focus */
    padding: 0.5rem 1rem; /* Adjust padding */
    margin: 0.5rem; /* Adjust margin */
}

    /* Hover and Focus Styles for the Menu Button */
    .custom-menu-button:hover,
    .custom-menu-button:focus {
        background-color: #0A2540; /* Darker blue on hover/focus */
    }

    /* If you want to style the icon inside the button */
    .custom-menu-button .bi-list {
        font-size: 1.5rem; /* Adjust size as needed */
        color: #fff; /* White color */
    }

/* Use Bootstrap Icon for the Menu Button */
.navbar-toggler-icon::before {
    font-family: 'bootstrap-icons'; /* Use Bootstrap Icons */
    content: "\f17c"; /* Bootstrap Icons 'list' icon */
    font-size: 1.5rem; /* Adjust size as needed */
    color: #fff; /* White color */
}


/* Customize Modal Size */
.modal-dialog {
    max-width: 500px; /* Adjust as needed */
}

/* Add Additional Margins or Padding */
.modal-body {
    padding: 20px;
    background-color: #ffffff !important;
    color: #000000 !important;
}

.modal-footer {
    padding: 10px;
}

/* Customize Button Styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Ensure Modal is on Top */
.modal {
    z-index: 1060 !important; /* Higher than backdrop */
}

.modal-backdrop {
    z-index: 1050 !important;
}
/* Modal Header Styles Based on Message Type */

/* Success */
.modal-header.alert-success {
    background-color: #001f3f !important; /* Navy blue */
    color: #ffffff !important; /* White text */
}

/* Danger */
.modal-header.alert-danger {
    background-color: #dc3545 !important; /* Bootstrap red */
    color: #ffffff !important; /* White text */
}

/* Warning */
.modal-header.alert-warning {
    background-color: #f8d7da !important; /* Very light red */
    color: #721c24 !important; /* Dark red text */
}

/* Info */
.modal-header.alert-info {
    background-color: #d1ecf1 !important; /* Very light blue */
    color: #0c5460 !important; /* Dark blue text */
}


/* Optional: Modal Content Background */
.modal-content {
    border-radius: 0.5rem;
}

/* Optional: Disable Background Scroll when Modal is Open */
body.modal-open {
    overflow: hidden;
}

/* Change cursor to pointer when hovering over selectable rows */
.selectable-row:hover {
    cursor: pointer;
    /* Optional Enhancements */
    background-color: #f5f5f5; /* Light gray background on hover */
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

/* Optional: Ensure smooth background transition */
.selectable-row {
    transition: background-color 0.3s ease;
}

.form-label {
    font-weight: bold;
}

/* General Hover Effect for All Text Links */
.text-link {
    color: inherit; /* Keep the original color */
    text-decoration: none; /* Remove underline initially */
    transition: color 0.3s, text-decoration 0.3s; /* Smooth transition */
}

    .text-link:hover,
    .text-link:focus {
        color: orange !important; /* Change color to orange */
        text-decoration: underline; /* Add underline on hover/focus */
    }

/* Footer */

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; /* Light background */
    border-top: 1px solid #dee2e6; /* Subtle top border */
    padding: 10px 20px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    height: 60px; /* Minimal height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Ensure it stays above other elements */
}

/* Responsive Adjustments for Mobile Devices */
@media (max-width: 767.98px) {
    .fixed-footer {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

        .fixed-footer .btn-group {
            width: 100%;
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
        }

        .fixed-footer .form-check {
            width: 100%;
            display: flex;
            justify-content: center;
        }
}


/* Centralized styling for all info buttons */
.info-button {
    background-color: #d1ecf1;
    color: #0c5460;
    font-size: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .info-button:hover {
        background-color: #c1e0e8;
    }

.sidebar-icon {
    color: orange; /* Experiment with different colors here */
}


/* Add to site.css or within <style> in <head> */
#globalLoadingOverlay {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.global-spinner-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,30,30,0.60); /* subtle dark gray overlay */
    z-index: 1;
}

.global-spinner-content {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.global-spinner-orange {
    border-width: 0.25em;
    border-style: solid;
    border-radius: 50%;
    border-top-color: #ff9900 !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    border-left-color: transparent !important;
}


.global-spinner-text-navy {
    color: #091324 !important; /* Navy blue */
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px #fff8;
}



