
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
}
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background-color: darkolivegreen;
}

main {
    padding-top: 120px; /* Provide space for the sticky navbar across pages */
}

:root {
    --olive-bg-1: #A7B87A;
    --olive-bg-2: #8CA463;
    --tile: #6F8B4B;
    --deep: #415F2E;
    --nav-bg: rgba(140,164,99,.85);
}

/* ===== GLOBAL FIXED HEADER / NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    transition: background .18s ease, box-shadow .18s ease;
    background: darkolivegreen; /* unified navbar color */
}

    .site-header.scrolled {
        background: rgba(85, 107, 47, 0.6); /* lighter transparent dark olive when scrolled */
        box-shadow: 0 8px 22px rgba(0,0,0,.25);
        border-radius: 0 0 12px 12px;
        backdrop-filter: blur(10px);
    }
    .site-header .max {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important; /* remove the auto side margins */
    }

    /* Bring content closer to the edges */
    .site-header .navbar {
        padding: 18px 24px !important;
    }

    .site-header .nav-links {
        gap: 56px !important;
    }

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
}

/* ===== Modal and Alert Stacking Fixes ===== */
/* Ensure all modals and SweetAlert appear above the fixed header/nav */
.modal, .modal.show { z-index: 2000 !important; }
.modal-backdrop { z-index: 1990 !important; }
.modal-overlay { z-index: 2000 !important; }
.swal2-container { z-index: 2005 !important; }

/* Brand (logo + wordmark) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand a {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .brand img {
        width: 70px;
        height: auto;
        display: block;
    }

    .brand .title {
        font-weight: 700;
        letter-spacing: .2px;
        color: #ffffff;
    }

/* Center nav links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 56px;
}

    .nav-links a {
        position: relative;
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        padding-bottom: 10px; 
    }
        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 3px;
            border-radius: 2px;
            background: #fff;
            transform: scaleX(0);
            transform-origin: 50% 100%;
            transition: transform .18s ease;
            opacity: .95;
        }

        .nav-links a.active::after,
        .nav-links a:focus-visible::after,
        .nav-links a:hover::after {
            transform: scaleX(1);
        }


.login-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: #9EB273;
    color: #fff;
    font-weight: 800;
    letter-spacing: .5px;
    border: 2px solid rgba(255,255,255,.6);
    box-shadow: 0 10px 30px rgba(0,0,0,.18) inset, 0 8px 20px rgba(0,0,0,.18);
    text-decoration: none;
}

    .login-pill:hover {
        filter: brightness(1.05);
    }

/* User dropdown styles */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.admin-inbox, .user-inbox {
    position: relative;
    margin-right: 8px;
}

.inbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.inbox-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .dropdown-toggle:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-1px);
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .dropdown-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .logout-item {
        color: #dc3545;
        border-top: 1px solid #eee;
    }

        .logout-item:hover {
            background-color: #f8d7da;
        }

/* Responsive Design */
@media (max-width: 980px) {
    .nav-links {
        gap: 28px;
    }
    
    .user-dropdown {
        gap: 10px;
    }
    
    .welcome-message {
        font-size: 15px;
    }
    
    .dropdown-toggle {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-menu {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .navbar {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 12px 16px;
    }
    
    .nav-links {
        display: none; /* Hide nav links on mobile, could implement hamburger menu */
    }
    
    .brand img {
        width: 60px;
    }
    
    .brand .title {
        font-size: 0.9rem;
    }
    
    .login-pill {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .user-dropdown {
        gap: 8px;
    }
    
    .welcome-message {
        font-size: 14px;
    }
    
    .dropdown-toggle {
        width: 26px;
        height: 26px;
    }
    
    .dropdown-menu {
        min-width: 130px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .body-content {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .brand img {
        width: 50px;
    }
    
    .brand .title {
        font-size: 0.8rem;
    }
    
    .login-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .body-content {
        padding-left: 8px;
        padding-right: 8px;
        margin-top: 8px;
    }
    
    input,
    select,
    textarea {
        max-width: 100%;
    }
}


/* SweetAlert2 default OK button: brand green with check */
.swal2-confirm {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 600;
}
.swal2-confirm::before {
  content: '\2714';
  display: inline-block;
  margin-right: 8px;
}

