/* --- PROFESSIONAL NAVBAR (glass, elevated) --- */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 20, 40, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    padding: 12px 0;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(150deg, #0a4b78, #0f5e8c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

/* --- search bar refined --- */
.search-bar {
    background: #f2f6fa;
    border-radius: 40px;
    width: 620px;
    padding: 6px 20px;
    border: 1px solid transparent;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-bar:focus-within {
    background: white;
    border-color: #0a66c2;
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.06);
}

.search-bar input {
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
}

.search-bar input::placeholder {
    color: #677f99;
    font-weight: 400;
}

/* --- premium icon circle --- */
.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f2f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    color: #2c4056;
    font-size: 1.15rem;
    transition: all 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    cursor: pointer;
}

.icon-circle:hover {
    background: #e3eaf0;
    color: #0a66c2;
    transform: scale(1.02);
}

.badge-notify {
    position: absolute;
    top: -2px;
    right: -4px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 30px;
    background: #c8102e;
    border: 2px solid white;
    color: white;
}

/* --- profile avatar refined --- */
.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.15s;
}

.profile-avatar:hover {
    border-color: #0a66c2;
}

/* --- dropdown premium --- */
.dropdown-menu {
    border: none;
    border-radius: 20px;
    padding: 12px 6px;
    box-shadow: 0 12px 30px rgba(0, 20, 40, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
    margin-top: 12px !important;
}

.dropdown-item {
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1e3b4f;
    transition: 0.1s;
}

.dropdown-item i {
    width: 22px;
    color: #5a7a94;
}

.dropdown-item:hover {
    background: #ebf2f9;
    color: #0a66c2;
}

.dropdown-item:hover i {
    color: #0a66c2;
}

/* --- Dropdown Hover Behavior --- */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    left: auto !important;
    right: 0 !important;
}

/* --- Marquee Enhancements (Global - Ultra Slim) --- */
.marquee-bar {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    height: 32px; /* Fixed ultra-slim height */
    padding: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-inner {
    display: flex;
    align-items: center;
    height: 100%;
    animation: marqueeScroll 25s linear infinite;
    padding-left: 100%;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Scroll Hint (Left & Right Icons) --- */
.scroll-hint-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.scroll-indicator-left,
.scroll-indicator-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
    animation: pulseIcon 2s infinite;
}

.scroll-indicator-left { left: -10px; }
.scroll-indicator-right { right: -10px; }

@keyframes pulseIcon {
    0% { transform: translateY(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateY(-50%) scale(1.1); opacity: 1; }
    100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
}

/* Hidden indicator on large screens where scrolling isn't usually needed for tabs */
@media (min-width: 992px) {
    .scroll-indicator-left, .scroll-indicator-right {
        display: none !important;
    }
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ensure a seamless hover area so the menu doesn't close when mouse moves to it */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}