/* ==========================================
   Global Variables & Base Setup
   ========================================== */
:root {
    --primary-color: #007bff;
    /* Synchronized with home_3.css body font stack */
    --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --nav-height: 70px;
}

html {
    min-height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#mainContent {
    flex: 1;
    padding-top: calc(var(--nav-height) + 1.5rem);
    transition: padding-top 0.2s ease-in-out;
}

body.has-banner main#mainContent {
    padding-top: calc(var(--nav-height) + 48px + 1.5rem);
}

footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
}

/* ==========================================
   Header & Glassmorphism Navbar
   ========================================== */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-custom {
    min-height: var(--nav-height);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    display: flex;
    align-items: center;
}

.logo-img,
.navbar-brand .logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-custom .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    color: #343a40;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--primary-color, #007bff);
}

.navbar-custom .nav-link.active {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

/* ==========================================
   Banners & Announcement Alerts
   ========================================== */
.announcement-banner {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 1020;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   Navigation & Dropdown Components
   ========================================== */
.dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* ==========================================
   Notifications & Badges
   ========================================== */
.notification-unread {
    background-color: #f0f7ff;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: inline-block;
}

.delete-notification {
    opacity: 0.4;
    transition: opacity 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
}

.delete-notification:hover {
    opacity: 1;
    color: #dc3545 !important;
}

.badge-count {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
}

.fs-7 {
    font-size: 0.75rem;
}

/* ==========================================
   Forms & Inputs
   ========================================== */
label {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    margin-right: 5px;
}

.checkbox-group label {
    display: block;
    margin-bottom: 5px;
}

/* ==========================================
   Footer & Utilities
   ========================================== */
.footer-brand-link {
    transition: opacity 0.15s ease-in-out;
}

.footer-brand-link:hover {
    opacity: 0.75;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}