/* ===========================================
   NAVBAR PC CSS - Desktop/PC devices only (> 992px)
   =========================================== */

/* ====== NAVBAR VARIABLES ====== */
:root {
    --navbar-primary: #b678f3;
    --navbar-secondary: #b678f3;
    --navbar-accent: #b678f3;
    --navbar-light: #f8f9fa;
    --navbar-dark: #212529;
    --navbar-er: #FFAB91;
    --navbar-wd: #4AB0FF;
    --navbar-bu: #FFC107;
    --navbar-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== CORE NAVBAR STRUCTURE ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 70px;
    background: #b678f3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 1rem 1rem;
    padding: 0.5rem 1rem;
    transition: var(--navbar-transition);
    max-width: 100vw;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar::-webkit-scrollbar {
    display: none;
}

/* ====== NAVBAR BRAND ====== */
body .navbar-brand {
    font-weight: 600;
    color: var(--navbar-dark);
    font-size: 1.5rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

body .navbar-brand:hover {
    color: var(--navbar-dark);
}

body .navbar-brand i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: var(--navbar-dark);
}

/* ====== NAVIGATION LINKS ====== */
.navbar-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    padding: 0 1rem;
    gap: 0.5rem;
    min-width: 0;
}

.navbar-nav::-webkit-scrollbar {
    display: none;
}

.navbar-nav .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    position: relative;
    color: var(--navbar-dark);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}



.navbar-nav .nav-link i {
    font-size: 1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ====== NAVIGATION LINK HOVER & ACTIVE STATES ====== */
.navbar-nav .nav-link:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link.active-link {
    color: #000000 !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: bold !important;
    border-radius: 0.5rem;
    /* Ensure no layout shift */
    transform: none;
    /* Prevent layout shifts */
    margin: 0;
    padding: 0.75rem 1rem;
}

/* Override checkin-modern.css navbar styles */
.navbar-nav .nav-link.active-link::after {
    display: none !important;
    content: none !important;
}







/* ====== RESPONSIVE UTILITIES ====== */
.navbar-nav.me-auto {
    margin-right: auto;
}

.navbar-nav.ms-auto {
    margin-left: auto;
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar-nav .nav-link,
    .notification-bell,
    .user-dropdown .dropdown-toggle,
    .dropdown-item {
        transition: none;
    }
    
    .navbar-nav .nav-link:hover,
    .notification-bell:hover,
    .user-dropdown-toggle:hover,
    .dropdown-item:hover {
        transform: none;
    }
}



/* ====== RIGHT SIDE CONTAINERS ====== */
.notification-bell-container,
.user-profile-container,
.login-container {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

/* ====== NOTIFICATION BELL ====== */
.notification-bell {
    position: relative;
    padding: 0.625rem;
    font-size: 1.35rem;
    color: #212529;
    transition: var(--navbar-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    /* Modern gradient background */
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Modern glow effect */
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.7),
                0 4px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.95);
    animation: modern-pulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes modern-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.7),
                    0 4px 12px rgba(0, 0, 0, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.9),
                    0 6px 18px rgba(0, 0, 0, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* ====== NOTIFICATION BELL HOVER EFFECTS ====== */
.notification-bell:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                0 0 35px rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-bell:active {
    transform: translateY(0) scale(0.95);
}

/* ====== USER DROPDOWN ====== */
.dropdown {
    position: relative !important;
    display: inline-block !important;
}

.user-profile-container {
    position: relative !important;
    z-index: 1035 !important;
}

.user-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    color: var(--navbar-dark);
    font-weight: 500;
    font-size: 1.125rem;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #212529;
    flex-shrink: 0;
}

.dropdown.show .user-dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.1);
    color: #000;
}

/* ====== USER DROPDOWN HOVER EFFECTS ====== */
.user-dropdown-toggle:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.user-dropdown-toggle:hover .user-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}



.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    max-width: 150px;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color:#212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: #212529;
}

/* ====== DROPDOWN MENU - FIXED Z-INDEX ====== */
.dropdown-menu {
    position: fixed !important;
    top: auto !important;
    right: 1rem !important;
    left: auto !important;
    display: none;
    min-width: 12rem !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    z-index: 1036 !important;
    transform: none !important;
}

.dropdown-menu.show {
    display: block !important;
    animation: dropdown-fade 0.2s ease-out;
}

@keyframes dropdown-fade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dropdown-menu.show {
    animation: dropdown-fade 0.2s ease-out;
}

.dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    clear: both !important;
    text-align: inherit !important;
    white-space: nowrap !important;
    background: none !important;
    border: 0 !important;
    color: var(--navbar-dark) !important;
    text-decoration: none !important;
    border-radius: 0.25rem !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
}

.user-dropdown .dropdown-item i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* ====== DROPDOWN ITEM HOVER EFFECTS ====== */
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #000000;
    font-weight: bold;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* ====== PRINT STYLES ====== */
@media print {
    .navbar {
        display: none;
    }
}
