/* Navbar Base Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Navbar Brand */
.navbar-brand {
    color: #2563eb !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #1f2937 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #2563eb !important;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 0.5rem;
    min-width: 250px;
}

.dropdown-item {
    color: #1f2937;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item i {
    color: #2563eb;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    transform: translateX(5px);
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Scrolled State */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Cart Icon */
.cart-icon {
    background: rgba(37, 99, 235, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb !important;
    transition: all 0.3s ease;
    position: relative;
}

.cart-icon:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

/* Login Button Styles */
.btn-custom-login {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-custom-login:hover {
    background: #2563eb;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-custom-login i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-custom-login:hover i {
    transform: translateX(-2px);
    color: #ffffff;
}

/* Scrolled State */
.navbar.scrolled .btn-custom-login {
    border-color: #2563eb;
    color: #2563eb !important;
}

.navbar.scrolled .btn-custom-login:hover {
    background: #2563eb;
    color: #ffffff !important;
}

/* Dropdown Animation */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    .btn-custom-login {
        padding: 6px 16px;
        font-size: 0.95rem;
        margin-top: 1rem;
        justify-content: center;
    }

    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        animation: none;
    }

    .dropdown-item {
        padding: 0.8rem 1rem;
        color: #ffffff;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

/* Active State */
.navbar-nav .nav-link.active {
    color: #2563eb !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 2px;
    background: #2563eb;
    transform: translateX(-50%);
}

/* Dropdown Hover Effect */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Animation for dropdown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown:hover .dropdown-menu {
    animation: fadeInDown 0.3s ease forwards;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.btn-custom-account {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: none;
    z-index: 1000;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 10px;
}

.user-dropdown-menu .dropdown-item.text-danger {
    color: #dc2626;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.1);
}

.user-dropdown-menu .dropdown-item i {
    font-size: 1.1rem;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Account Dropdown Styles */
.dropdown .btn-custom-account {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown .btn-custom-account:hover,
.dropdown .btn-custom-account:focus {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.dropdown-menu {
    min-width: 200px;
    padding: 8px;
    margin-top: 10px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    transition: all 0.3s ease;
}

.dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.dropdown-item i {
    font-size: 1.1rem;
}

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

.dropdown-menu.show {
    animation: fadeInDown 0.3s ease;
} 