﻿/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    width: 100%;
    margin-left: 240px;
    transition: all 0.3s ease;
    z-index: 999;
}

/* Trim the vertical gap around page content.
   Every page wraps its content in `.container.mt-4.mb-4` (1.5rem top/bottom);
   override globally to a tighter spacing. */
#content .container.mt-4 {
    margin-top: 12px !important;
}

#content .container.mb-4 {
    margin-bottom: 12px !important;
}

.form-styles {
    font-family: "Poppins", san-serif;
}

.form-submit-style {
    background-color: #225687;
    color: white;
    font-family: "Poppins", san-serif;
}

.form-cancel-style {
    border: 1.5px solid #225687;
    background-color: white;
    color: #225687;
    font-family: "Poppins", san-serif;
}

/* Top navbar removed — the sidebar now hosts the collapse toggle and logout. */

/* Profile section */
#nav-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

#nav-profile ul{
    z-index: 2000;
}

    #nav-profile .profile-icon i {
        font-size: 1.4rem;
        color: #225687;
    }

    #nav-profile .profile-name {
        color: #1f2c3a;
        font-size: 0.80rem;
    }

/* Logout button */
    #nav-profile .logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        color: #225687;
        transition: all 0.25s ease;
    }

    /* Dropdown */
    #nav-profile .dropdown-menu {
        border-radius: 12px;
        padding: 0.5rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

        /* Dropdown items */
        #nav-profile .dropdown-menu .dropdown-item {
            font-size: 0.9rem;
            transition: background 0.2s ease, color 0.2s ease;
        }

            #nav-profile .dropdown-menu .dropdown-item:hover {
                background: #225687;
                color: #fff;
            }

/* Responsive adjustments */
@media (max-width: 768px) {
    #nav-profile .profile-name {
        display: none;
    }
}

/* ---------------------------------------------------
    LOADING STYLE
----------------------------------------------------- */
#loading {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(91, 91, 92,0.8);
    z-index: 1000;
}

#loadingspinner {
    font-family: "Montserrat", san-serif;
    font-size: 16px;
    color: white;
}

#loader {
/*    border: 16px solid #f3f3f3;
    border-top: 16px solid #225687;
    border-radius: 50%;*/
    width: 150px;
    height: 150px;
/*    animation: spin 2s linear infinite;*/
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loader-wrapper2 {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* Ensure it's above other elements */
}

#loader2 {
    text-align: center;
}

#loadingspinner2 {
    margin-top: 10px; /* Add some space between the spinner and the text */
}


@media screen and (min-width: 676px) {
    .modal-dialog {
        min-width: 50%; /* New width for default modal */
        min-height: 50%; /* New width for default modal */
    }
}

@media (max-width: 768px) {
    .nav-profile .profile-name {
        display: none;
    }
}

