/* Navbar Styles */
#mainNav {
    background-color: #000929;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo Styles */
.navbar-logo {
    height: 50px;
    max-width: auto;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(240, 21, 67, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: #f01543;
    border-radius: 3px 3px 0 0;
}

.nav-icon {
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover .nav-icon {
    transform: translateY(-2px);
}

/* Search Form */
.search-form {
    width: 350px;
    transition: all 0.3s ease;
    margin-right: 1.5rem;
}

.search-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(240, 21, 67, 0.2);
}

.btn-search {
    border-radius: 0 50px 50px 0;
    background-color: #f01543;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #d01339;
    transform: translateX(2px);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
}

.nav-icon-link {
    position: relative;
    margin: 0 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-icon-link:hover .nav-icon-circle {
    border-color: #f01543;
    background-color: rgba(240, 21, 67, 0.1);
    transform: translateY(-3px);
}

.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f01543;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* User Dropdown with Avatar */
.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.user-dropdown .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.user-dropdown:hover .avatar-circle {
    border-color: #f01543;
    background-color: rgba(240, 21, 67, 0.1);
    transform: translateY(-3px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.8rem 0;
    margin-top: 0.8rem;
    background-color: #fff;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(240, 21, 67, 0.08);
    color: #f01543;
    border-left: 3px solid #f01543;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Auth Buttons */
.auth-buttons {
    margin-left: 0.8rem;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #f01543;
    border-color: #f01543;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 4px 10px rgba(240, 21, 67, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d01339;
    border-color: #d01339;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(240, 21, 67, 0.35);
}

/* Mobile Search */
.mobile-search-toggle {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background-color: rgba(240, 21, 67, 0.2);
    transform: translateY(-2px);
}

.mobile-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 9, 41, 0.95);
    padding: 1rem;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-form .input-group {
    width: 100%;
}

.mobile-search-form .form-control {
    border-radius: 30px 0 0 30px;
    border: none;
    padding: 0.8rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-search-form .btn-search {
    border-radius: 0 30px 30px 0;
    padding: 0.8rem 1.2rem;
}

.mobile-search-close {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background-color: rgba(240, 21, 67, 0.2);
}

/* Logout Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    background-color: #f8f9fa;
}

.modal-body {
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 9, 41, 0.98);
        padding: 1.2rem;
        border-radius: 0 0 15px 15px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        margin: 0.3rem 0;
    }
    
    .navbar-nav .nav-link.active {
        background-color: rgba(240, 21, 67, 0.1);
    }
    
    .navbar-nav .nav-link.active::after {
        left: 0;
        right: 0;
        bottom: -2px;
    }
    
    .navbar-actions {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .auth-buttons {
        margin-left: 0;
        margin-top: 1rem;
        display: flex;
        width: 100%;
        gap: 0.5rem;
    }
    
    .auth-buttons .btn {
        flex: 1;
    }
    
    .navbar-logo {
        height: 40px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        margin-right: 0;
    }
    
    .navbar-logo {
        height: 36px;
    }
    
    .nav-icon-circle, .avatar-circle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-search-container {
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 32px;
    }
    
    .mobile-search-toggle, .nav-icon-circle, .avatar-circle {
        width: 34px;
        height: 34px;
    }
    
    .navbar-actions {
        gap: 0.3rem;
    }
    
    .nav-icon-link {
        margin: 0 0.4rem;
    }
}