/* 
 * Iresha Trading - Custom Luxury Styling System
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4CAF50;
    --primary-hover: #388E3C;
    --secondary-color: #2e7d32;
    --bg-color: #ffffff;
    --accent-color: #f0f8f0;
    --dark-accent: #1b5e20;
    --text-muted: #5e7a5e;
    
    /* Typography */
    --serif-font: 'Playfair Display', Georgia, serif;
    --sans-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Animation Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Global Settings */
body {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    font-family: var(--sans-font);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--serif-font);
    font-weight: 700;
}

p {
    font-weight: 300;
    color: #444444;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--accent-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Utility Styles */
.text-primary-color { color: var(--primary-color); }
.text-secondary-color { color: var(--secondary-color); }
.text-secondary-color:hover { color: var(--primary-color) !important; }
.bg-primary-color { background-color: var(--primary-color); }
.bg-dark-accent { background-color: var(--dark-accent); }
.text-green { color: var(--primary-color); }
.text-green:hover { color: var(--primary-hover) !important; }
.border-green { border-color: var(--primary-color) !important; }
.bg-green { background-color: var(--primary-color); }
.text-serif { font-family: var(--serif-font); }

/* Buttons styling */
.btn-premium-green {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-green:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
.btn-premium-outline-green {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-outline-green:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
/* Note: btn-premium-red was deprecated and replaced with btn-premium-green */

.btn-premium-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-outline:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-premium-white {
    background-color: #ffffff;
    color: var(--secondary-color);
    border: 2px solid #ffffff;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-white:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Glassmorphism Header */
.glass-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.navbar-brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.glass-navbar.scrolled .navbar-brand img {
    height: 70px;
}
.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 16px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 32px);
}

/* Hero Slider Section */
.hero-slider-container {
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    position: relative;
}
.hero-slider-container .carousel-inner, .hero-slider-container .carousel-item {
    height: 100%;
}
.hero-slider-container .carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider-container .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    z-index: 1;
}
.carousel-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 700px;
    padding: 20px;
}
.carousel-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.carousel-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.carousel-content .btn-wrapper {
    animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Zoom background animation for active slide */
.carousel-item-active-zoom {
    animation: bgZoom 15s linear infinite;
}
@keyframes bgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Floating Spice Particles in Background */
.animated-spice-bg {
    position: relative;
    background: var(--bg-color);
}
.spice-particle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    animation: floatParticle 25s infinite linear;
}
.p1 { top: 15%; left: 5%; width: 60px; animation-duration: 20s; }
.p2 { top: 60%; right: 5%; width: 85px; animation-duration: 32s; }
.p3 { top: 40%; left: 80%; width: 50px; animation-duration: 25s; }
.p4 { top: 85%; left: 20%; width: 70px; animation-duration: 28s; }

@keyframes floatParticle {
    0% { transform: translateY(0px) rotate(0deg) translateX(0px); }
    33% { transform: translateY(-30px) rotate(120deg) translateX(20px); }
    66% { transform: translateY(20px) rotate(240deg) translateX(-10px); }
    100% { transform: translateY(0px) rotate(360deg) translateX(0px); }
}

/* Modern Luxury Cards */
.luxury-card {
    border: none;
    border-radius: 12px;
    background-color: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}
.luxury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--accent-color);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.luxury-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}
.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}
.card-overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    opacity: 0;
    z-index: 2;
}
.luxury-card:hover .card-overlay-actions {
    bottom: 0;
    opacity: 1;
}
.luxury-card .card-body {
    padding: 25px;
}
.luxury-card .card-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}
.luxury-card .card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}
.luxury-card .card-title a:hover {
    color: var(--primary-color);
}
.price-badge {
    font-family: var(--sans-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Category cards grid */
.category-btn-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 12px 30px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
}
.category-btn-card.active, .category-btn-card:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Export countries section */
.country-badge {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.country-badge img {
    height: 35px;
    width: auto;
    margin-bottom: 10px;
    border-radius: 3px;
}
.country-badge h6 {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
}
.country-badge:hover {
    background-color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

/* Testimonial slider styling */
.testimonial-card {
    background: var(--accent-color);
    border-radius: 12px;
    padding: 40px;
    margin: 20px 10px;
    position: relative;
}
.testimonial-card .client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
}
.testimonial-card .quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(232, 19, 39, 0.08);
    font-family: serif;
}
.rating-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

/* Certifications Bar */
.cert-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px 0;
    background-color: var(--accent-color);
}
.cert-logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888888;
    text-align: center;
    border: 2px dashed #cccccc;
    padding: 15px 25px;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.cert-logo:hover {
    color: var(--secondary-color);
    border-color: var(--primary-color);
    background-color: #ffffff;
}

/* CTA Banners */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #222222 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 19, 39, 0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: -100px;
    right: -50px;
}
.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Footer Section */
footer {
    background-color: var(--dark-accent);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
footer h5 {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}
footer ul li {
    margin-bottom: 12px;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
}
footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
footer .footer-bottom {
    background-color: #0b0b0b;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection observer scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Quantity selector */
.quantity-control {
    display: inline-flex;
    border: 1px solid #cccccc;
    border-radius: 25px;
    overflow: hidden;
}
.quantity-control button {
    background-color: var(--accent-color);
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-fast);
}
.quantity-control button:hover {
    background-color: #e0e0e0;
}
.quantity-control input {
    width: 45px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 600;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}
.back-to-top:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

/* Toast Notifications styling */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.custom-toast {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s forwards;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin Dashboard Elements */
.admin-sidebar {
    background-color: var(--dark-accent);
    color: #ffffff;
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0px;
    font-weight: 400;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.05);
}
.admin-sidebar .nav-link::after {
    display: none;
}
.metric-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}
.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.metric-icon {
    font-size: 2.2rem;
    opacity: 0.8;
}

/* Invoice printable area */
@media print {
    body * {
        visibility: hidden;
    }
    #invoice-print-area, #invoice-print-area * {
        visibility: visible;
    }
    #invoice-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* Utility classes */
.max-width-600 { max-width: 600px; }
.tracking-wider { letter-spacing: 0.08em; }
.bg-accent-color { background-color: var(--accent-color); }
.w-30 { width: 30%; }

/* Mobile Responsiveness Media Queries */
@media (max-width: 991.98px) {
    .carousel-content h1 {
        font-size: 2.8rem;
    }
    .about-img { height: 320px !important; }
}

@media (max-width: 767.98px) {
    .about-img { height: 240px !important; }
    .display-4 { font-size: 1.85rem !important; }
    .display-6 { font-size: 1.35rem !important; }
    .hero-slider-container {
        height: 70vh;
        min-height: 420px;
    }
    .carousel-content h1 {
        font-size: 2.0rem;
        margin-bottom: 15px;
    }
    .carousel-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .carousel-content .btn-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }
    .carousel-content .btn-wrapper .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .about-img { height: 200px !important; }
    .display-4 { font-size: 1.55rem !important; }
    .display-6 { font-size: 1.2rem !important; }
    .hero-slider-container {
        height: 65vh;
        min-height: 380px;
    }
    .carousel-content h1 {
        font-size: 1.65rem;
    }
    .carousel-content p {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

/* Bottom Mobile Navigation Bar styling */
.bottom-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1050;
}

.bottom-mobile-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 5px 0;
}

.bottom-mobile-nav a i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-mobile-nav a:hover, .bottom-mobile-nav a.active {
    color: var(--primary-color) !important;
}

/* Adjust paddings on mobile layout */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;
    }
    .whatsapp-float, .back-to-top {
        bottom: 80px;
    }
}

/* Premium WhatsApp Button style */
.btn-premium-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border: 2px solid #25D366;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Preloader Styling Overhaul */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 85, 165, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: ambientPulse 4s infinite ease-in-out;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    animation: logoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, logoFloat 3s infinite ease-in-out 1.2s;
    opacity: 0;
}

.preloader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.preloader-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: absolute;
    animation: barFill 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader-tagline {
    font-family: var(--sans-font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.5s;
}

/* Animations */
@keyframes ambientPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}

@keyframes logoEntrance {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes barFill {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Chatbot Floating Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 110px;
    z-index: 1040;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    position: relative;
}

.chatbot-toggle:hover {
    background-color: var(--primary-color);
    transform: scale(1.08);
}

.chatbot-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 19, 39, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(232, 19, 39, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 19, 39, 0); }
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-window.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Header */
.chatbot-header {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--primary-color);
}

.chatbot-avatar-container {
    position: relative;
}

.chatbot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
    object-fit: contain;
}

.chatbot-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #25D366;
    border: 2px solid var(--secondary-color);
}

.chatbot-title {
    font-size: 14px;
    font-weight: 700;
}

.chatbot-status-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.chatbot-close-btn:hover {
    color: var(--primary-color);
}

/* Messages */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #fcfcfc;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.bot .chat-message-content {
    background-color: #f1f1f1;
    color: #333333;
    border-top-left-radius: 2px;
}

.chat-message.user .chat-message-content {
    background-color: var(--primary-color);
    color: #ffffff;
    border-top-right-radius: 2px;
}

.chat-message-time {
    font-size: 9px;
    color: #999999;
    margin-top: 4px;
    padding: 0 4px;
}

.chat-message.user .chat-message-time {
    align-self: flex-end;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background-color: #f1f1f1;
    border-radius: 12px;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #999999;
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Suggestions */
.chatbot-suggestions {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestion-btn {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    color: #444444;
}

.suggestion-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Input Area */
.chatbot-input-area {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.chatbot-input-area input:focus {
    border-color: var(--primary-color);
}

.chatbot-input-area button {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-input-area button:hover {
    background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .chatbot-widget {
        bottom: 80px;
        right: 90px;
    }
    
    .chatbot-window {
        width: 310px;
        height: 420px;
        bottom: 70px;
    }
}



