/* Ensure the page takes the full height */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif !important;
}


/* Main content should expand to fill available space */
main {
    flex: 1;
    padding-bottom: 20px; /* Prevents overlap with the footer */
}

/* Footer should stay at the bottom */
footer {
    background-color: #057590;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
    position: relative;
}

/* Ensure Navbar Uses Arial Font */
.custom-navbar {
    background-color: #057590 !important;
    padding: 10px 0;
    font-family: Arial, sans-serif !important;
}

/* Navbar Links */
.custom-navbar .nav-link {
    color: white !important;
    padding: 10px 15px;
    transition: color 0.3s;
}

/* Always Show Toggle Button */
.custom-toggler {
    border: none !important;
    background: transparent !important;
    padding: 5px 10px;
    cursor: pointer;
    display: block !important; /* Ensure it's always visible */
}

/* Custom Toggle Icon */
.custom-toggler-icon {
    width: 30px;
    height: 3px;
    background-color: white;
    display: block;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Toggle Icon Lines */
.custom-toggler-icon::before,
.custom-toggler-icon::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.custom-toggler-icon::before {
    top: -8px;
}

.custom-toggler-icon::after {
    top: 8px;
}

/* Navbar Toggle Button Hover */
.custom-toggler:hover .custom-toggler-icon,
.custom-toggler:hover .custom-toggler-icon::before,
.custom-toggler:hover .custom-toggler-icon::after {
    background-color: #f0c040 !important; /* Change color on hover */
}

/* Navbar Toggle Button (When Clicked) */
.navbar-toggler[aria-expanded="true"] .custom-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Logout Button */
/* Ensure the logout button is aligned within the menu */
.custom-navbar .logout-button {
    background-color: #ff0000 !important;
    color: white !important;
    padding: 8px 12px; /* Adjust padding */
    border-radius: 5px;
    text-align: center;
    display: inline-block; /* Prevents it from stretching */
    width: auto; /* Ensures it does not expand */
    margin: 5px 10px; /* Adjusts spacing */
}

/* Logout button hover effect */
.custom-navbar .logout-button:hover {
    background-color: #cc0000 !important;
}

/* Fix Logout Button Alignment Inside Mobile Menu */
@media (max-width: 992px) {
    .custom-navbar .logout-button {
        display: block; /* Stack it properly */
        width: fit-content; /* Keep it from stretching */
        margin: 10px auto; /* Center it within the menu */
    }
}


/* Ensure Toggle Button Has No Background */
.navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 5px 10px;
    cursor: pointer;
}

/* Custom Toggle Icon (White, No Background) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Remove Any Button Focus Effects */
.navbar-toggler:focus,
.navbar-toggler:hover {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent horizontal scrolling on small screens */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        width: 100% !important;
        padding: 10px;
    }
}

