/* Active dropdown item styles */
.navbar .dropdown-item.active {
    background-color: rgba(19, 101, 42, 0.1);
    color: #13652a;
    font-weight: 500;
}

.navbar .dropdown-item.active::before {
    content: '•';
    margin-right: 0.5rem;
    color: #13652a;
}

/* Nav item hover and active state styles */
.navbar .nav-item .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.125rem;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.navbar .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
}

.navbar .nav-item .nav-link.active,
.navbar .nav-item .nav-link.active:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Add an underline indicator for active nav item */
.navbar .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: white;
}

/* Style dropdown menu */
.navbar .dropdown-menu {
    margin-top: 8px;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.navbar .dropdown-item:hover {
    background-color: rgba(19, 101, 42, 0.1);
}

.navbar .dropdown-item:active {
    background-color: #13652a;
}

.navbar .dropdown-divider {
    margin: 0.5rem 0;
}

/* Logo styling for navbar */
.navbar .government-logos {
    display: flex;
    align-items: center;
}

.navbar .government-logos img {
    object-fit: contain;
    max-height: 40px;
}

/* Responsive adjustments for logos */
@media (max-width: 992px) {
    .navbar .government-logos {
        margin-right: 0.5rem;
    }
    
    .navbar .government-logos img {
        max-height: 30px;
    }
}

@media (max-width: 576px) {
    .navbar .d-flex.align-items-center img {
        max-height: 40px;
    }
    
    .navbar .government-logos {
        display: none; /* Hide right logos on very small screens */
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* User profile styling */
.user-profile-container {
    display: flex;
    align-items: center;
}

.user-profile-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.user-profile-btn:hover, .user-profile-btn:focus {
    background-color: #e9ecef;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: #343a40;
}

.user-role {
    font-size: 12px;
    color: #6c757d;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

/* Add a green background to the navbar */
.navbar {
    background-color: #13652a !important;
    color: white;
}

/* Make the navbar text white */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.show,
.navbar .navbar-nav .show > .nav-link {
    color: white !important;
}

/* Style dropdown toggler */
.navbar .dropdown-toggle::after {
    color: rgba(255, 255, 255, 0.7);
}

/* Navbar toggler for mobile */
.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Style the user profile button for the green navbar */
.user-profile-btn {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.user-profile-btn:hover, .user-profile-btn:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-name, .user-role {
    color: white;
}

.auth-buttons .btn-outline-primary {
    color: white;
    border-color: white;
}

.auth-buttons .btn-outline-primary:hover {
    background-color: white;
    color: #13652a;
}

.auth-buttons .btn-primary {
    background-color: white;
    color: #13652a;
    border-color: white;
}

.auth-buttons .btn-primary:hover {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #13652a;
}

nav.bg-white { 
    background-color: #166534 !important;
}