/* =========================================
   NAVBAR CSS - MODERN CLASSIC DESIGN
   ========================================= */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 78px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    z-index: 1050;
    padding: 0;
    transition: all 0.3s ease;
}

body.dark-mode .navbar {
    background: #1a1a2e !important;
    border-bottom: 1px solid #2a2a3d;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* Navbar Brand */
.navbar-brand {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

/* =========================================
   NAVBAR LINKS - MAIN NAVIGATION
   ========================================= */

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a5568;
    padding: 0.6rem 1rem;
    margin: 0 0.125rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

body.dark-mode .navbar-nav .nav-link {
    color: #cbd5e1;
}

/* Navbar Link Hover Effect */
.navbar-nav .nav-link:hover {
    color: var(--primary, #1e73be);
    background: rgba(30, 115, 190, 0.08);
    transform: translateY(-1px);
}

body.dark-mode .navbar-nav .nav-link:hover {
    color: #4aa3ff;
    background: rgba(74, 163, 255, 0.12);
}

/* Navbar Link Active State */
.navbar-nav .nav-link.active {
    color: var(--primary, #1e73be);
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.12), rgba(30, 115, 190, 0.06));
    font-weight: 700;
}

body.dark-mode .navbar-nav .nav-link.active {
    color: #4aa3ff;
    background: linear-gradient(135deg, rgba(74, 163, 255, 0.15), rgba(74, 163, 255, 0.08));
}

/* Navbar Link Icons */
.navbar-nav .nav-link i {
    font-size: 1rem;
    transition: transform 0.2s ease;
    color: var(--primary, #1e73be);
    opacity: 0.85;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
    opacity: 1;
}

body.dark-mode .navbar-nav .nav-link i {
    color: #4aa3ff;
}

/* Underline Animation on Hover (Classic Touch) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary, #1e73be), var(--accent, #f57c00));
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
}

body.dark-mode .navbar-nav .nav-link::after {
    background: linear-gradient(90deg, #4aa3ff, #ff9a3c);
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle:hover {
    background: #e2e8f0;
    transform: rotate(15deg);
}

body.dark-mode .theme-toggle {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e1;
}

body.dark-mode .theme-toggle:hover {
    background: #374151;
}

/* =========================================
   AUTH BUTTONS (Login/Register)
   ========================================= */

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: transparent;
    border: 1.5px solid var(--primary, #1e73be);
    color: var(--primary, #1e73be);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.btn-login:hover {
    background: var(--primary, #1e73be);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.25);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary, #1e73be), var(--primary-dark, #155a96));
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(30, 115, 190, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 115, 190, 0.4);
}

body.dark-mode .btn-login {
    border-color: #4aa3ff;
    color: #4aa3ff;
}

body.dark-mode .btn-login:hover {
    background: #4aa3ff;
    color: #1a1a2e;
}

body.dark-mode .btn-register {
    background: linear-gradient(135deg, #4aa3ff, #2b7cd3);
}

/* =========================================
   USER DROPDOWN BUTTON
   ========================================= */

.user-dropdown-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 16px 6px 8px;
    border-radius: 40px;
    transition: all 0.25s ease;
}

.user-dropdown-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

body.dark-mode .user-dropdown-btn {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .user-dropdown-btn:hover {
    background: #374151;
}

/* User Avatar */
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary, #1e73be);
}

.user-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #1e73be), var(--accent, #f57c00));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .user-name {
    color: #cbd5e1;
}

/* Dropdown Chevron */
.dropdown-chevron {
    font-size: 12px;
    color: #718096;
    transition: transform 0.2s;
}

.user-dropdown-btn[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

/* =========================================
   DROPDOWN MENU
   ========================================= */

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    min-width: 260px;
    margin-top: 12px;
    background: #ffffff;
    animation: dropdownFadeIn 0.2s ease;
}

body.dark-mode .dropdown-menu {
    background: #1e1e2f;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Dropdown Header */
.dropdown-header {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0.25rem;
}

body.dark-mode .dropdown-header {
    background: #2a2a3d;
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
    color: var(--primary, #1e73be);
}

body.dark-mode .dropdown-item {
    color: #cbd5e1;
}

body.dark-mode .dropdown-item:hover {
    background: #2a2a3d;
    color: #4aa3ff;
}

/* Dropdown Item Icons */
.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top-color: #e2e8f0;
}

body.dark-mode .dropdown-divider {
    border-top-color: #3a3a55;
}

/* Logout Item */
.dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

body.dark-mode .dropdown-item.text-danger {
    color: #f87171;
}

body.dark-mode .dropdown-item.text-danger:hover {
    background: #3a2a2a;
    color: #fca5a5;
}

/* =========================================
   MOBILE TOGGLE BUTTON
   ========================================= */

.navbar-toggler {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.navbar-toggler:hover {
    background: #f1f5f9;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

body.dark-mode .navbar-toggler:hover {
    background: #2d3748;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 115, 190, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(74, 163, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================
   RESPONSIVE NAVBAR (MOBILE)
   ========================================= */

@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 16px;
        margin-top: 1rem;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    body.dark-mode .navbar-collapse {
        background: #1a1a2e;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .auth-buttons {
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .user-dropdown-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin-top: 0.5rem;
        width: 100%;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    body.dark-mode .dropdown-menu {
        border-color: #3a3a55;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 115, 190, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(30, 115, 190, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 115, 190, 0); }
}

/* Notification Badge Pulse */
.notif-badge {
    animation: pulse 2s infinite;
}

/* =========================================
   NAVBAR STYLES
   ========================================= */
.navbar, .cott-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 78px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    z-index: 1050;
}

body.dark-mode .navbar,
body.dark-mode .cott-navbar {
    background: #1a1a2e !important;
    border-bottom: 1px solid #3a3a55;
}

.navbar-brand {
    padding: 8px 0;
}

.navbar-nav .nav-link,
.cott-navbar .navbar-nav > li > a {
    font-weight: 600;
    color: var(--cott-text);
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.cott-navbar .navbar-nav > li > a:hover,
.cott-navbar .navbar-nav > li > a:focus {
    color: var(--primary);
}

body.dark-mode .navbar-nav .nav-link,
body.dark-mode .cott-navbar .navbar-nav > li > a {
    color: #e0e0e0;
}

body.dark-mode .navbar-nav .nav-link:hover,
body.dark-mode .navbar-nav .nav-link.active,
body.dark-mode .cott-navbar .navbar-nav > li > a:hover {
    color: #4aa3ff;
}

.nav-icon {
    margin-right: 7px;
    color: var(--cott-orange);
}

.nav-cta > a {
    background: var(--cott-orange);
    color: #fff !important;
    border-radius: 24px;
    margin-top: 17px;
    margin-bottom: 17px;
    padding: 10px 18px !important;
}

.user-pill > a {
    background: rgba(31, 125, 212, 0.08);
    border-radius: 24px;
    margin-top: 17px;
    margin-bottom: 17px;
    padding: 10px 16px !important;
}

/* =========================================
   BRAND ROTATOR STYLES
   ========================================= */
.brand-rotator {
    position: relative;
    width: 240px;
    height: 70px;
    overflow: hidden;
    cursor: pointer;
}

.brand-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.brand-frame.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.logo-frame {
    justify-content: flex-start;
}

.brand-logo-full {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.text-frame {
    justify-content: flex-start;
}

.brand-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name-big {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.brand-tagline-animated {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.brand-rotator.sliding .brand-frame {
    animation: brandSlide 0.5s ease-in-out;
}

@keyframes brandSlide {
    0% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(30px); opacity: 0; }
    51% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
/* ============================================
   NOTIFICATION DROPDOWN STYLES - FOR ALL USERS
   ============================================ */

.notification-dropdown {
    position: relative;
}

.notification-dropdown .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.notification-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.notification-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.notification-dropdown-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.notification-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-dropdown-item:hover {
    background: var(--bg-secondary);
}

.notification-dropdown-item.unread {
    background: rgba(99, 102, 241, 0.05);
}

.notification-dropdown-item .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-dropdown-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message-small {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-message-small strong {
    font-weight: 600;
}

.notification-time-small {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notification-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
}

.notification-dropdown-footer .btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.notification-dropdown-footer .btn-link:hover {
    text-decoration: underline;
}

.btn-link-reset {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-link-reset:hover {
    background: rgba(0,0,0,0.05);
}

/* Dark mode styles */
body.dark-mode .notification-dropdown-item:hover {
    background: var(--bg-secondary);
}

body.dark-mode .notification-dropdown-item.unread {
    background: rgba(99, 102, 241, 0.1);
}

body.dark-mode .btn-link-reset:hover {
    background: rgba(255,255,255,0.05);
}
