/* Navbar Styles */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.brand-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin: 0 2rem;
}

.navbar-left,
.navbar-center,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-center {
    justify-content: center;
}

.navbar-right {
    justify-content: flex-end;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-text {
    font-size: 0.95rem;
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-dropdown-toggle:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
    padding: 0.5rem 0;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile Toggle */
.navbar-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px var(--shadow-color);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 999;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-left,
    .navbar-center,
    .navbar-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .navbar-center {
        justify-content: flex-start;
    }
    
    .navbar-right {
        justify-content: flex-start;
    }
    
    .nav-link,
    .nav-dropdown-toggle {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-color);
        margin-left: 1rem;
        border-radius: 0;
        padding: 0.5rem 0;
    }
    
    .navbar-mobile-toggle {
        display: flex;
    }
    
    .navbar-menu {
        margin: 0;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-left: 0.25rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background-color: var(--hover-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Theme Switcher Integration */
.theme-switcher {
    margin-left: 1rem;
}

.theme-switcher select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Active State for Current Page */
.nav-link[href="{{ request.path }}"] {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Animation for dropdown items */
.nav-dropdown-menu .dropdown-item {
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s;
}

.nav-dropdown.active .nav-dropdown-menu .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

.nav-dropdown.active .nav-dropdown-menu .dropdown-item:nth-child(1) { transition-delay: 0.1s; }
.nav-dropdown.active .nav-dropdown-menu .dropdown-item:nth-child(2) { transition-delay: 0.2s; }
.nav-dropdown.active .nav-dropdown-menu .dropdown-item:nth-child(3) { transition-delay: 0.3s; }
.nav-dropdown.active .nav-dropdown-menu .dropdown-item:nth-child(4) { transition-delay: 0.4s; }

/* Messaging Notifications */
.messaging-notifications {
    position: relative;
    display: inline-block;
}

.notification-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.notification-toggle:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 350px;
    max-height: 400px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mark-all-read:hover {
    background: var(--primary-light);
}

.notification-list {
    max-height: 250px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: var(--hover-color);
}

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

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-sender {
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.loading-notifications {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-notifications {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.no-notifications-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.notification-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-messages {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-messages:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}
.nav-dropdown.active .nav-dropdown-menu .dropdown-item:nth-child(5) { transition-delay: 0.5s; }

/* Language Switcher */
.language-switcher {
    margin: 0 0.5rem;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-toggle i {
    font-size: 1rem;
}

.lang-text {
    font-weight: 600;
}

@media (max-width: 768px) {
    .language-switcher {
        order: 3;
    }
} 