/* Modern Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    opacity: 0.6;
}

/* Navbar Container */
.header .container {
    position: relative;
    z-index: 2;
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar-brand i {
    font-size: 2rem;
    color: #ffc107;
    -webkit-text-fill-color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
    transition: all 0.3s ease;
}

.navbar-brand:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.4));
}

.logo-image {
    max-height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-text {
    filter: brightness(1.1);
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.3rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15);
}

/* Active Navigation Link */
.navbar-nav .nav-link.active {
    color: #ffc107 !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 2px solid rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

/* Icons in Navigation */
.navbar-nav .nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.3) rotate(5deg);
    color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

/* Cart Link Special Styling */
.cart-link {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)) !important;
    border: 2px solid rgba(255, 193, 7, 0.2) !important;
}

.cart-link:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.1)) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
}

/* Badge Styling */
.navbar-nav .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    font-weight: 700;
}

.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    animation: blink 1.5s infinite;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4); }
    100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3); }
}

@keyframes blink {
    0%, 50% { opacity: 1; transform: scale(1); }
    51%, 100% { opacity: 0.6; transform: scale(0.8); }
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 250px;
}

.dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-radius: 12px;
    margin: -0.8rem -0.8rem 0.8rem -0.8rem;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    color: #2c3e50 !important;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0.2rem 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)) !important;
    color: #ffc107 !important;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.dropdown-item i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 20px;
}

.dropdown-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #ffc107;
}

.dropdown-divider {
    border-color: rgba(255, 193, 7, 0.2);
    margin: 0.8rem 0;
    border-width: 1px;
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 193, 7, 0.08);
    transform: translateY(-1px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.user-profile:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.user-role {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Search Bar */
.search-container {
    position: relative;
    margin: 0 1rem;
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 260px;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 1rem;
    z-index: 9999;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(255,193,7,0.15);
}

.search-dropdown form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-dropdown .search-input {
    flex: 1;
    min-width: 0;
    border-radius: 25px;
    border: 1.5px solid #ffc107;
    background: #fff;
    box-shadow: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-dropdown .search-input:focus {
    border-color: #ff9800;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(255,193,7,0.15);
}

.search-dropdown button {
    border-radius: 50%;
    padding: 0.5rem 0.7rem;
    font-size: 1.1rem;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.navbar-toggler:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.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%28255, 193, 7, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        margin: 1rem 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 1rem !important;
        color: #2c3e50 !important;
        border-radius: 12px;
        justify-content: center;
    }
    
    .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
        backdrop-filter: none;
        min-width: auto;
    }
    
    .dropdown-item {
        color: #2c3e50 !important;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        justify-content: center;
    }
    
    .navbar-nav.ms-auto {
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 193, 7, 0.2);
        padding-top: 1rem;
    }
    
    .user-profile {
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    .search-container {
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-brand i {
        font-size: 1.6rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .search-dropdown {
        min-width: 180px;
        padding: 0.7rem;
    }
    
    .search-dropdown .search-input {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
    
    .logo-image {
        max-height: 32px;
    }
    
    .logo-text {
        font-size: 1.2rem !important;
    }
}

/* Scroll Effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 0.3rem 0;
}

/* Animation for page load */
.header {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Switcher (if added) */
.language-switcher {
    margin-left: 1rem;
}

.language-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #2c3e50;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
}

/* Dark Mode Toggle (if added) */
.dark-mode-toggle {
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #2c3e50;
    padding: 0.6rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
}

.navbar-nav.ms-auto {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.search-container.m-0 {
    margin: 0 !important;
}

@media (max-width: 991.98px) {
    .navbar-nav.ms-auto {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .navbar-nav .nav-item {
        justify-content: center;
    }
    .search-container.m-0 {
        justify-content: center;
    }
} 