/* Bena - Main Stylesheet */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-darker: #4a5bc4;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Poppins', sans-serif;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mobile Carousel Styles */
.mobile-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}

.mobile-carousel::-webkit-scrollbar {
    display: none;
}

.mobile-carousel .carousel-item {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
    margin-right: 0.75rem;
}

@media (min-width: 576px) {
    .mobile-carousel .carousel-item {
        width: 200px;
    }
}

@media (min-width: 768px) {
    .mobile-carousel .carousel-item {
        width: 220px;
    }
}

/* Hide mobile carousel on desktop */
@media (min-width: 992px) {
    .mobile-carousel {
        display: none;
    }
}

/* Desktop grid styles */
.desktop-grid {
    display: none;
}

@media (min-width: 992px) {
    .desktop-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .mobile-carousel {
        display: flex;
    }
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    padding: 3rem 0 !important;
}

.hero-banner > .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.hero-banner .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-banner .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-banner .btn-light {
    background: white;
    color: #667eea;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hero-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-image-float {
    animation: floatHero 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
    opacity: 0.95;
    position: relative;
}

.hero-image-float::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    z-index: -1;
    filter: blur(10px);
}

.hero-image-float:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section Headers */
.section-header-modern {
    margin-bottom: 3rem;
}

.section-badge-modern {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-title-modern {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

/* Modern Category Cards */
#categories .row {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    animation: slideCategories 25s linear infinite;
    width: max-content;
}

#categories .row:hover {
    animation-play-state: paused;
}

@keyframes slideCategories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#categories .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 280px;
    margin-right: 1rem;
}

/* Hide scroll buttons on desktop */
.category-scroll-btn {
    display: none;
}

@media (max-width: 768px) {
    #categories .row {
        animation: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        padding-bottom: 10px;
    }
    
    #categories .row::-webkit-scrollbar {
        display: none;
    }
    
    #categories .row > [class*='col-'] {
        width: 200px;
        margin-right: 0.75rem;
        scroll-snap-align: start;
    }
    
    /* Show scroll buttons on mobile */
    .category-scroll-btn {
        display: inline-flex;
    }
}

@media (max-width: 575px) {
    #categories .row > [class*='col-'] {
        width: 160px;
    }
}

.category-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

/* Brands Section with Shake Effect */
#brands {
    background: #f8f9fa;
}

.brands-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.brand-item {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
}

.brand-logo-wrapper {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 2px solid transparent;
}

.brand-logo-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
    animation: brandShake 0.5s ease-in-out;
}

@keyframes brandShake {
    0%, 100% { transform: translateY(-5px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-5px) scale(1.05) rotate(-3deg); }
    50% { transform: translateY(-5px) scale(1.05) rotate(3deg); }
    75% { transform: translateY(-5px) scale(1.05) rotate(-1deg); }
}

.brand-logo {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo-wrapper:hover .brand-logo {
    transform: scale(1.1);
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.brand-product-count {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Continuous subtle float animation for brands */
.brand-item {
    animation: brandFloat 3s ease-in-out infinite;
}

.brand-item:nth-child(2n) {
    animation-delay: 0.5s;
}

.brand-item:nth-child(3n) {
    animation-delay: 1s;
}

.brand-item:nth-child(4n) {
    animation-delay: 1.5s;
}

.brand-item:nth-child(5n) {
    animation-delay: 2s;
}

@keyframes brandFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.brand-item:hover {
    animation: none;
}

@media (max-width: 768px) {
    .brand-item {
        width: 120px;
    }
    
    .brand-logo-wrapper {
        width: 100px;
        height: 60px;
    }
    
    .brand-logo {
        max-width: 80px;
        max-height: 45px;
    }
}

@media (max-width: 575px) {
    .brands-wrapper {
        gap: 1rem;
    }
    
    .brand-item {
        width: 100px;
    }
    
    .brand-logo-wrapper {
        width: 80px;
        height: 50px;
    }
    
    .brand-logo {
        max-width: 60px;
        max-height: 35px;
    }
}

.category-image-wrapper-modern {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.category-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-gradient-placeholder-modern {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-card-modern:hover .category-image-modern {
    transform: scale(1.15);
}

.category-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card-modern:hover .category-overlay-modern {
    opacity: 1;
}

.category-icon-modern {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transform: translateX(50px);
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
}

.category-card-modern:hover .category-icon-modern {
    transform: translateX(0);
}

.category-content-modern {
    background: white;
    padding: 1.25rem;
}

.category-name-modern {
    color: var(--dark-color);
    transition: color 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-card-modern:hover .category-name-modern {
    color: var(--primary-color);
}

/* Modern Product Cards */
.featured-products-section-modern {
    background: white;
}

.featured-products-section-modern .row {
    display: flex;
    flex-wrap: wrap;
}

.featured-products-section-modern .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.product-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

.product-image-wrapper-modern {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-modern:hover .product-image-modern {
    transform: scale(1.1);
}

.product-badge-modern {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.discount-badge-modern {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.featured-badge-modern {
    background: linear-gradient(135deg, #ffd93d, #ffb347);
    color: #333;
    top: auto;
    bottom: 15px;
    left: 15px;
}

.product-actions-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
}

.product-card-modern:hover .product-actions-modern {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn-modern:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transform: scale(1.1);
}

.product-info-modern {
    background: white;
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-modern {
    display: flex;
    gap: 2px;
}

.stars-modern i {
    font-size: 0.875rem;
    color: #ddd;
}

.stars-modern i.active {
    color: #ffc107;
}

.rating-text-modern {
    font-size: 0.75rem;
    color: #6c757d;
}

.product-name-modern a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.product-name-modern a:hover {
    color: var(--primary-color);
}

.current-price-modern {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.old-price-modern {
    font-size: 0.875rem;
}

/* Why Choose Section */
.why-choose-section-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.feature-card-modern {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.feature-icon-wrapper-modern {
    display: flex;
    justify-content: center;
}

.feature-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15) !important;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.product-card img {
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Category Cards */
.category-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15) !important;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.category-card .category-image {
    transition: transform 0.3s;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-placeholder {
    transition: opacity 0.3s;
}

.category-card:hover .category-placeholder {
    opacity: 0.9;
}

.product-card .card-title a {
    transition: color 0.3s;
}

.product-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6a3d8f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
    opacity: 0.9;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Links */
a {
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner {
        text-align: center;
        padding: 1.5rem 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-badge {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-banner .display-4 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        background: linear-gradient(135deg, #00f5ff 0%, #ffffff 50%, #ff00ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-banner .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.5;
    }
    
    .hero-banner .btn-light {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-image-float {
        max-height: 150px !important;
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .category-image-wrapper-modern {
        height: 180px;
    }
    
    .product-image-wrapper-modern {
        height: 200px;
    }
    
    .feature-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card-modern {
        padding: 1.5rem;
    }
    
    /* Ensure proper alignment on mobile */
    .featured-products-section-modern .row > [class*='col-'],
    #categories .row > [class*='col-'] {
        margin-bottom: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .hero-banner {
        padding: 1.25rem 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-badge {
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-banner .display-4 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-banner .lead {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-banner .btn-light {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hero-image-float {
        max-height: 120px !important;
        margin-top: 0.25rem;
    }
    
    .product-image-wrapper-modern {
        height: 180px;
    }
    
    .category-image-wrapper-modern {
        height: 160px;
    }
    
    .product-info-modern {
        padding: 1rem;
    }
    
    .category-content-modern {
        padding: 1rem !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Cart Badge */
#cart-count {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Logo styles to match your theme */
.navbar-brand .logo-img,
.sidebar .logo-img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3)) 
            drop-shadow(0 8px 16px rgba(118, 75, 162, 0.2))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transform: perspective(1000px) rotateY(-2deg) translateZ(0);
    border-radius: 8px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 
        0 0 0 1px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(102, 126, 234, 0.2),
        0 8px 24px rgba(118, 75, 162, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Mobile hero logo size */
@media (max-width: 768px) {
    .hero-image-float {
        max-height: 250px !important;
    }
}

@media (max-width: 575px) {
    .hero-image-float {
        max-height: 220px !important;
    }
}

.navbar-brand:hover .logo-img,
.sidebar .logo-img:hover {
    transform: perspective(1000px) rotateY(0deg) translateZ(20px) scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.4)) 
            drop-shadow(0 12px 24px rgba(118, 75, 162, 0.3))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    box-shadow: 
        0 0 0 2px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 12px 32px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* For dark sidebar in admin */
.sidebar .logo-img {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1)) 
            drop-shadow(0 8px 16px rgba(102, 126, 234, 0.2))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar .logo-img:hover {
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.15)) 
            drop-shadow(0 12px 24px rgba(102, 126, 234, 0.3))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 12px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Logo gradient text effect (if using text logo) */
.logo {
    color: var(--primary-color);
    font-family: var(--font-family);
    font-weight: 700;
}

.logo-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6a3d8f);
}

/* ============================================
   AUTH PAGES (LOGIN & REGISTER) STYLES
   ============================================ */

.auth-page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s;
}

.auth-card:hover {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
}

.auth-logo-wrapper {
    animation: fadeInDown 0.6s ease-out;
}

.auth-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
    transition: transform 0.3s;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-form {
    animation: fadeInUp 0.6s ease-out;
}

.form-group-modern {
    position: relative;
}

.form-label-modern {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.form-label-modern i {
    color: var(--primary-color);
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input-modern {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-check-label-modern {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    margin: 0;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.alert-modern {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease-in-out;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-switch-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-text-modern {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-logo {
        height: 60px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
}

