/* Remove text decoration from all anchor tags */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}

/* Main Navigation */
#mainNav {
    min-height: 70px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    padding: 0.5rem 0;
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

/* Navigation Links */
.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    text-decoration: none !important;
}

.nav-link:not(.dropdown-item):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: #212529;
}

.dropdown-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    opacity: 0.7;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0d6efd;
    padding-left: 1.75rem;
}

/* Notifications Dropdown */
.dropdown-notifications {
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

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

.notification-unread {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

/* User Dropdown */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

/* Mobile Bottom Navigation */
#mobileNav {
    z-index: 1030;
    padding: 0.25rem 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#mobileNav a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

#mobileNav a:hover,
#mobileNav a.text-primary {
    color: #0d6efd !important;
}

#mobileNav i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

#mobileNav small {
    font-size: 0.7rem;
    display: block;
}

/* Active State Indicator */
#mobileNav a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: transparent;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all 0.2s ease;
}

#mobileNav a.text-primary::after {
    background-color: #0d6efd;
}

/* Search Form */
.nav-search {
    position: relative;
    margin-right: 1rem;
}

.nav-search input {
    padding-left: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.nav-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* Badge Notifications */
.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    font-size: 0.6rem;
    padding: 0.25em 0.5em;
    border-radius: 1rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2b3035;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #dee2e6;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #343a40;
    color: #fff;
}

[data-bs-theme="dark"] #mobileNav {
    background-color: #212529;
    border-top-color: #2c3034;
}

[data-bs-theme="dark"] #mobileNav a {
    color: #adb5bd;
}

[data-bs-theme="dark"] #mobileNav a:hover,
[data-bs-theme="dark"] #mobileNav a.text-primary {
    color: #6ea8fe !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1.25rem;
        margin: 0.125rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem 0.75rem 3rem;
    }
}
