/* Modern Navbar Styles */
.modern-navbar {
    background: #334155;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    z-index: 1001;
    position: relative;
}

/* Navbar Brand/Logo */
.navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Navbar Navigation */
.navbar-nav {
    align-items: center;
}

/* Navbar Items */
.nav-item {
    margin: 0 0.25rem;
}

/* Navbar Links */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover:before {
    left: 100%;
}

/* Dropdown Toggle */
.dropdown-toggle::after {
    border-top-color: white;
    transition: all 0.3s ease;
}

.nav-link:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-menu {
    background: #334155;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    animation: dropdownFadeIn 0.3s ease;
    z-index: 10000;
    position: relative;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Items */
.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: white;
    transform: scale(1.1);
}

/* Notification Badges */
.badge-counter {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
}

/* Notification Icons */
.notification-icon {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.notification-icon:hover {
    color: white;
    transform: scale(1.1);
}

/* Divider */
.topbar-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-navbar {
        padding: 0.5rem 1rem;
        border-radius: 0 0 15px 15px;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 180px;
        margin-top: 0.25rem;
    }

    .dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .user-profile {
        padding: 0.25rem 0.75rem;
    }

    .user-name {
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    .badge-counter {
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
    }
}

/* Search Section */
.navbar-search {
    position: relative;
}

.navbar-search .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    padding-right: 3rem;
    transition: all 0.3s ease;
}

.navbar-search .form-control:focus {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-search .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.navbar-search .btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Disabled Items */
.dropdown-item.disabled {
    color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

.dropdown-item.disabled:hover {
    background: transparent;
    transform: none;
    color: #6c757d;
}

/* Active States */
.nav-link.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Hover Effects for Dropdown */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Smooth Transitions */
.navbar-nav .nav-item {
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:hover {
    transform: translateY(-2px);
}