/**
 * Custom CSS Styles
 */

 :root {
    /* Brand Colors */
    --dark-spring-green: #04763b;
    --rojo: #de2928;
    --sage: #c7c7a6;
    --nyanza: #eaffda;
    --cerulean: #4281a4;
    
    /* Bootstrap Overrides */
    --bs-primary: var(--dark-spring-green);
    --bs-primary-rgb: 4, 118, 59;
    --bs-danger: var(--rojo);
    --bs-danger-rgb: 222, 41, 40;
    --bs-success: var(--dark-spring-green);
    --bs-success-rgb: var(--bs-primary-rgb);
}

/* General Styling */
html {
    height: 100%;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header Styles --- */
.navbar {
    /* background-color: #ffffff; */ /* White background already set */
    /* box-shadow: 0 2px 4px rgba(0,0,0,.05); */ /* Shadow already set */
    min-height: 65px; /* Ensure minimum height */
}

.navbar-brand .logo-img {
    max-height: 40px;
    width: auto;
}

.navbar .nav-link {
    color: #495057; /* Slightly darker gray */
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--dark-spring-green);
}
.navbar .nav-link.active {
     border-bottom: 2px solid var(--dark-spring-green); /* Highlight active link */
}

/* Language Switcher */
.language-switcher .lang-flag img {
    width: 24px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
    border-radius: 3px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.language-switcher .lang-flag.inactive-lang img {
    opacity: 0.6;
}
.language-switcher .lang-flag.active-lang img {
    opacity: 1;
    transform: scale(1.1); /* Slightly bigger active flag */
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.language-switcher .lang-flag:hover img {
    opacity: 1;
    transform: scale(1.1);
}
.language-switcher span.mx-1 {
    font-size: 0.8em;
    line-height: 24px; /* Align with flags */
}

/* User Dropdown & Buttons */
.navbar .dropdown-menu {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    border: none;
}
.navbar .dropdown-item {
    padding: 0.5rem 1rem;
}
.navbar .dropdown-item i.fa-fw {
    color: #6c757d; /* Muted icon color */
    margin-right: 8px;
}
.navbar .dropdown-item:active {
    background-color: #e9ecef; /* Light gray active state */
    color: #000;
}

.navbar .btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

.navbar .btn.rounded-pill {
     padding-left: 1rem;
     padding-right: 1rem;
}



/* --- Footer Styles --- */
.footer-link {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.footer-link:hover {
    color: #ffffff !important; /* Brighter white on hover */
    text-decoration: underline;
}
footer h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #adb5bd; /* Lighter gray for titles */
}
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important; /* Slightly more opaque */
}


/* --- Catalog Filters (Keep from previous step) --- */
.filter-card .accordion-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}
.filter-card .accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}
.filter-card .accordion-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}
.filter-card .accordion-body {
    padding: 0.75rem 1rem;
}
.filter-card .form-label {
    margin-bottom: 0.3rem;
}

/* --- Plant Cards (Keep from previous step) --- */

/* --- Plant Cards --- */
.plant-card-simple {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e0e0e0; /* Lighter, subtle border */
    border-radius: 0.75rem; /* More rounded corners for a modern feel */
    background-color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Enhanced, modern shadow */
    /* min-height removed for dynamic height */
    display: flex;
    flex-direction: column;
}
.plant-card-simple:hover {
    transform: translateY(-6px); /* More pronounced lift on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Deeper shadow on hover */
}
.plant-img-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background-color: #f0f0f0; /* Light background for placeholder */
    border-top-left-radius: calc(0.75rem - 1px);
    border-top-right-radius: calc(0.75rem - 1px);
}
.plant-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
    transition: transform 0.3s ease;
}
.plant-card-simple:hover .plant-img {
    transform: scale(1.08); /* Slightly more zoom on hover */
}
.plant-card-simple .plant-status {
    font-size: 0.7rem; /* Slightly smaller for subtlety */
    padding: 0.3em 0.7em;
    font-weight: 600; /* Bolder text */
    border-radius: 0.3rem; /* Slightly rounded badge */
    letter-spacing: 0.05em; /* A bit of letter spacing */
    text-transform: uppercase; /* Uppercase for status */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Shadow for badge */
}

.plant-card-simple .card-body {
    padding: 1.25rem; /* More generous padding */
    display: flex;
    flex-direction: column;
    /* flex-grow-1 removed */
}
.plant-card-simple .card-title {
    font-size: 1.25rem; /* Larger, more prominent title */
    font-weight: 700; /* Bolder title */
    margin-bottom: 0; /* No space below title */
    color: #333; /* Darker color for title */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* min-height removed to allow title to take only necessary space */
    line-height: 1.6em; /* Adjust line height for readability */
}
.plant-card-simple .price-info { /* New class for price container */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    align-items: baseline; /* Align text baselines */
    margin-bottom: 0; /* Remove default paragraph margin */
}
.plant-card-simple .price-label { /* New class for price label */
    font-size: 0.9rem;
    color: #6c757d; /* Muted color for label */
    font-weight: 500;
    margin-right: 0.4rem; /* Space between label and price */
    white-space: nowrap; /* Prevent label from wrapping alone */
}
.plant-card-simple .price-value { /* New class for price value */
    font-size: 1.6rem !important; /* Significantly larger price */
    font-weight: 800; /* Extra bold price */
    color: var(--dark-spring-green); /* Brand primary color for price */
    line-height: 1; /* Tighter line height for price */
}
.plant-card-simple .login-to-order-btn {
    margin-top: 1rem; /* Space above the button */
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
}


/* --- MODAL STYLES (REVISED) --- */
#plantModal .modal-dialog {
    max-width: 1100px;
    margin: 1.75rem auto;
    height: 90vh; /* Make modal take most of the viewport height */
    display: flex;
    align-items: center;
}
#plantModal .modal-content {
    height: 100%;
    border-radius: 1rem;
    overflow: hidden; /* Important for containing children */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex; /* Make content a flex container */
    flex-direction: column;
}
#plantModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0; /* Prevent header from shrinking */
    padding: 0.8rem 1.2rem;
    background-color: #f8f9fa;
}
#plantModal .modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-spring-green);
}
#plantModal .modal-body {
    padding: 0; /* Remove padding to allow columns to fill space */
    flex-grow: 1; /* Allow body to fill available vertical space */
    overflow: hidden; /* Prevent body itself from scrolling on desktop */
}
#plantModal .modal-body > .row.g-0 {
    height: 100%; /* Make row fill the modal-body */
}

/* LEFT COLUMN (IMAGE + THUMBS) */
.image-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem !important;
    background-color: #f8f9fa;
}
#plantImageCarousel {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}
#plantModal .carousel-inner {
    height: 100%;
    width: 100%;
}
#plantModal .carousel-item {
    height: 100%;
    display: none; /* Hide non-active items by default */
    transition: transform .6s ease-in-out; /* Keep Bootstrap transition */
}
#plantModal .carousel-item.active {
    display: flex; /* Display only active item as flex for centering */
    justify-content: center;
    align-items: center;
}
#plantModal .carousel-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
#modalThumbContainer {
    flex-shrink: 0; /* Pin to the bottom of the flex container */
    padding-top: 1rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}
#modalThumbContainer img.border-primary {
    border-color: var(--bs-primary) !important;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.5);
}

/* RIGHT COLUMN (DETAILS) */
.details-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem !important;
}

/* Fixed Top Part */
.modal-details-header {
    flex-shrink: 0;
}
#plantModal #modalPlantName {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #212529;
}
#plantModal .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
#plantModal .detail-label { font-size: 1rem; color: #6c757d; font-weight: 600; }
#plantModal .detail-value { font-size: 1.1rem; font-weight: 700; color: #343a40; }
#modalPlantStock { color: var(--bs-success); }
#plantModal hr { margin: 1rem 0; }

/* Scrollable Middle Part */
.modal-scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}
/* Modern Scrollbar */
.modal-scrollable-content::-webkit-scrollbar { width: 8px; }
.modal-scrollable-content::-webkit-scrollbar-track { background: transparent; }
.modal-scrollable-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.modal-scrollable-content::-webkit-scrollbar-thumb:hover { background: #aaa; }

#plantModal .section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-spring-green);
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}
#modalPlantDescriptionContainer .section-title { margin-top: 0; }
#plantModal #modalPlantDescription { font-size: 1.0rem; line-height: 1.6; color: #495057; }
#plantModal #modalPlantProperties ul { padding-left: 1.25rem; margin-bottom: 0; }
#plantModal #modalPlantProperties li { margin-bottom: 0.5rem; font-size: 0.95rem; }
#plantModal #modalPlantProperties li strong { color: #343a40; }


/* Fixed Bottom Part */
.modal-details-footer {
    flex-shrink: 0;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}
#modalPlantPriceContainer, #modalAddToCartContainer {
    background-color: transparent;
}
#modalAddToCartContainer { margin-top: 1rem; }
#plantModal .modal-price-label { font-size: 1.1rem; color: #6c757d; font-weight: 600; margin-right: 0.5rem; }
#plantModal .modal-price-value { font-size: 2.4rem !important; font-weight: 900; color: var(--dark-spring-green); line-height: 1; }
#modalQuantity { max-width: 120px; font-size: 1.1rem; }
#modalAddToCartButton { font-weight: 700; font-size: 1.1rem; }
#modalStockError { font-size: 0.9rem; margin-top: 0.5rem; }


/* RESPONSIVE MODAL STYLES */
@media (max-width: 991.98px) {
    #plantModal .modal-dialog { font-size: 1.8rem; }
    #plantModal .modal-price-value { font-size: 2rem !important; }
}

@media (max-width: 767.98px) {
    #plantModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    #plantModal .modal-content {
        height: 100%;
        border-radius: 0;
        position: relative; /* Context for absolute positioning of footer */
    }
    #plantModal .modal-body {
        overflow-y: auto; /* The whole body scrolls */
        padding-bottom: 190px; /* Space for the fixed footer */
    }
    /* Undo the desktop split-view layout */
    #plantModal .modal-body > .row.g-0 { height: auto; }
    .image-column, .details-column {
        display: block; /* Revert from flex layout */
        height: auto;
        padding: 1.25rem !important;
    }
    #plantModal .carousel-item img { height: 250px; }
    .modal-scrollable-content {
        overflow-y: visible;
        height: auto;
    }
    /* Make the footer sticky at the bottom of the modal */
    .modal-details-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 10;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
        padding: 1rem 1.25rem;
        margin-top: 0;
    }
    #modalQuantity { max-width: 100px; }
    #modalAddToCartButton { font-size: 1rem; }
}

.slider-container {
    padding: 20px 15px 10px 15px; /* Top, Right, Bottom, Left padding */
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .container {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .catalog-main-row {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .plant-card-simple .card-body {
        padding: 0.5rem; /* Further reduced padding for cards */
    }

    .plant-card-simple .plant-name {
        font-size: 0.9rem; /* Revert to previous smaller font for name */
    }

    .plant-card-simple .plant-price .fs-5 {
        font-size: 1rem !important; /* Revert to previous smaller price font */
    }
}

/* --- Modern Range Slider --- */
.modern-range-slider {
    position: relative;
    height: 50px;
    padding-top: 20px;
}

.slider-track-container {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.slider-range {
    position: absolute;
    height: 100%;
    background-color: var(--dark-spring-green);
    border-radius: 2px;
}

.modern-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    height: 4px;
    left: 0;
}

.modern-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* For Chrome, Safari, Opera */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    background-color: white; /* Revert to white */
    border-radius: 50%;
    cursor: grab;
    border: 2px solid var(--dark-spring-green); /* Standard border */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Standard shadow */
    margin-top: -9px; /* Center 22px thumb on 4px track */
    z-index: 2; /* Ensure thumb is above track */
    display: block; /* Ensure visibility */
    visibility: visible; /* Ensure visibility */
}

.modern-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 22px; /* Slightly larger thumb */
    height: 22px; /* Slightly larger thumb */
    background-color: white;
    border-radius: 50%;
    cursor: grab;
    border: 2px solid var(--dark-spring-green);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2; /* Ensure thumb is above track */
}

.slider-value-container {
    position: absolute;
    top: -45px;
    transform: translateX(-50%);
    background-color: var(--dark-spring-green);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 10;
    width: 60px;
    text-align: center;
    pointer-events: none;
    transition: top 0.2s ease, transform 0.2s ease; /* Add transition for smooth movement */
}

.slider-value-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-spring-green);
    transition: border-color 0.2s ease, top 0.2s ease; /* Add transition for smooth movement */
}

/* Styles for when tags overlap and max tag moves below */
.slider-value-container.overlap-below {
    top: 20px; /* Position below the slider track */
}

.slider-value-container.overlap-below::after {
    top: -11px; /* Position above the container, fine-tuned */
    border: 7px solid transparent; /* Fine-tuned triangle size */
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    border-bottom-color: var(--dark-spring-green); /* Add bottom triangle pointing up */
}


.slider-value-container input[type="number"],
.slider-value-container input[type="text"] {
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    -moz-appearance: textfield; /* Firefox */
    width: 100%; /* Fill container width */
    padding: 0; /* Remove padding to prevent overflow */
    pointer-events: auto;
}

.slider-value-container input[type="number"]::-webkit-outer-spin-button,
.slider-value-container input[type="number"]::-webkit-inner-spin-button,
.slider-value-container input[type="text"]::-webkit-outer-spin-button,
.slider-value-container input[type="text"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Offcanvas Filters (Keep from previous step) --- */
.offcanvas-body .filter-card {
    box-shadow: none;
    border: none;
}
.offcanvas-body .filter-card .card-body {
    padding: 0;
}
.offcanvas-body .filter-card .p-3.border-top {
     border-top: none !important;
     padding-top: 0 !important;
}

/* --- Homepage Specific Styles --- */

/* Hero Carousel */
#heroCarousel .carousel-item {
    height: 75vh; /* Adjust viewport height percentage */
    min-height: 450px; /* Minimum height */
    background-color: #333; /* Fallback color */
}

#heroCarousel .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the slide area */
    opacity: 0.7; /* Darken image slightly for text contrast */
}

#heroCarousel .carousel-caption {
    bottom: 15%; /* Position caption lower */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 600px; /* Limit caption width */
}
#heroCarousel .carousel-caption.text-start { margin-right: auto; margin-left: 5%;}
#heroCarousel .carousel-caption.text-end { margin-left: auto; margin-right: 5%;}
#heroCarousel .carousel-caption h1 {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#heroCarousel .carousel-caption p {
    color: #eee;
    margin-bottom: 1.5rem;
}

/* Animate.css basic integration (add library link in header if needed) */
/* You might need to add <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/> */
.animate__delay-1s { animation-delay: 0.5s; }
.animate__delay-2s { animation-delay: 1s; }
.animate__pulse { animation-duration: 2s; }


/* About Us Section */
#about-us .about-image {
     max-height: 450px;
     object-fit: cover;
}

/* Categories Section */
#categories .category-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#categories .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-success); /* Use Bootstrap success color */
}
#categories .category-card h5 {
    color: #343a40;
    transition: color 0.3s ease;
}
#categories .category-card:hover h5 {
    color: var(--bs-success);
}
#categories .category-icon {
    transition: transform 0.3s ease;
}
#categories .category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Why Choose Us / Features Section */
#features .feature-box {
    /* Add background or border if desired */
     /* background-color: #f8f9fa; */
     /* border-radius: 0.5rem; */
     /* border: 1px solid #eee; */
}
#features .feature-box:hover .feature-icon i {
    transform: scale(1.1) rotate(-5deg);
}

/* Contact Snippet Section */
#contact-section {
    background: linear-gradient(to right, var(--dark-spring-green), #035a2d); /* Brand gradient */
}
#contact-section h2 {
    font-weight: 600;
}
#contact-section .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    #heroCarousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    #heroCarousel .carousel-caption {
        bottom: 10%;
        padding: 1rem;
        max-width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    #heroCarousel .carousel-caption h1 {
        font-size: 1.8rem;
    }
     #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
     #heroCarousel .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    #about-us .display-5 {
        font-size: 2rem;
    }
    #features .feature-box {
        margin-bottom: 1.5rem;
    }
}

/* Add specific Admin CSS if needed */
/* .admin-dashboard .card ... */

/* Contact Bubble and Form Styles */
.contact-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Increased z-index */
}

.contact-bubble-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--dark-spring-green);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.contact-bubble-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.contact-bubble-toggle i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.contact-bubble.active .contact-bubble-toggle i {
    transform: rotate(45deg);
}

.contact-bubble-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-bubble.active .contact-bubble-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.contact-option i
.contact-bubble-menu h4 {
    margin-top: 0;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.contact-option:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.contact-option i {
    margin-right: 12px;
    width: 28px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.contact-option .icon-whatsapp {
    background-color: #25D366;
}

.contact-option .icon-message {
    background-color: #007bff;
}

.contact-option strong {
    font-weight: 600;
    display: block;
    font-size: 14px;
}

.contact-option span {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
}

/* Mobile Contact Menu */
.mobile-contact-menu {
    display: none;
}

@media (max-width: 768px) {
    .contact-bubble {
        display: none;
    }
    
    .mobile-contact-menu {
        display: block;
        margin-top: 10px;
    }
    
    .mobile-contact-divider {
        margin: 10px 0;
    }

    .mobile-contact-option {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        text-decoration: none;
        color: #333;
        border-radius: 5_px;
    }
    
    .mobile-contact-option:hover {
        background-color: #f8f9fa;
    }
    
    .mobile-contact-option i {
        margin-right: 12px;
        width: 28px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    width: 260px;
    background: #343a40;
    color: white;
    transition: all 0.3s;
    min-height: 100vh;
    position: fixed;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-content {
    width: calc(100% - 260px);
    margin-left: 260px;
    transition: all 0.3s;
}

.admin-content.expanded {
    width: calc(100% - 70px);
    margin-left: 70px;
}

.sidebar-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2c3136;
}

.sidebar-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
}

.sidebar-menu {
    padding: 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    width: 100%;
}

.sidebar-menu a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu a.active {
    background: var(--dark-spring-green);
    color: white;
}

.sidebar-menu .nav-icon {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    font-size: 1.25rem;
}

.sidebar-menu .menu-text {
    transition: opacity 0.2s;
}

.sidebar-menu .badge {
    margin-left: auto;
}

.admin-sidebar.collapsed .menu-text,
.admin-sidebar.collapsed .sidebar-header h3 {
    display: none;
}

.admin-sidebar.collapsed .nav-icon {
    margin-right: 0;
    font-size: 1.5rem;
}

.admin-sidebar.collapsed .sidebar-menu a {
    text-align: center;
    padding: 15px 0;
    justify-content: center;
}

.admin-sidebar.collapsed .sidebar-toggle {
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.admin-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-header .btn-group .btn {
    border-radius: 50px;
}

/* Admin Cards & Stats */
.stats-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card .stats-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.stats-card .stats-link {
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-align: center;
    padding: 20px;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    color: var(--dark-spring-green);
}

/* Responsive Adjustments for Catalog Cards */
@media (min-width: 768px) and (max-width: 991.98px) { /* For medium screens (e.g., half PC screen) */
    .plant-card-simple .card-body {
        padding: 0.75rem; /* Reduced padding */
    }
    .plant-card-simple .card-title {
        /* min-height removed to allow title to take only necessary space */
        font-size: 1.1rem; /* Slightly smaller title font */
    }
    .plant-card-simple .price-value {
        font-size: 1.4rem !important; /* Slightly smaller price font */
    }
}

/* Responsive Adjustments for Admin */
@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 70px;
    }
    
    .admin-content {
        width: calc(100% - 70px);
        margin-left: 70px;
    }
    
    .admin-sidebar .menu-text,
    .admin-sidebar .sidebar-header h3 {
        display: none;
    }
    
    .admin-sidebar .nav-icon {
        margin-right: 0;
        font-size: 1.5rem;
    }
    
    .admin-sidebar .sidebar-menu a {
        text-align: center;
        padding: 15px 0;
        justify-content: center;
    }
    
    .admin-sidebar.expanded {
        width: 260px;
        z-index: 1030;
    }
    
    .admin-sidebar.expanded .menu-text,
    .admin-sidebar.expanded .sidebar-header h3 {
        display: block;
    }
    
    .admin-sidebar.expanded .nav-icon {
        margin-right: 15px;
        font-size: 1.25rem;
    }
    
    .admin-sidebar.expanded .sidebar-menu a {
        text-align: left;
        padding: 15px 20px;
        justify-content: flex-start;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        transition: all 0.5s ease-in-out;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .admin-content {
        width: 100%;
        margin-left: 0;
    }
    
    .admin-sidebar {
        width: 260px;
        left: -280px;
    }
    
    .admin-sidebar.mobile-visible {
        left: 0;
    }
    
    .admin-sidebar .menu-text,
    .admin-sidebar .sidebar-header h3 {
        display: block;
    }
    
    .admin-sidebar .nav-icon {
        margin-right: 15px;
        font-size: 1.25rem;
    }
    
    .admin-sidebar .sidebar-menu a {
        text-align: left;
        padding: 15px 20px;
        justify-content: flex-start;
    }
    
    .mobile-toggle-button {
        display: block !important;
    }
}

.mobile-toggle-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-spring-green);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Icon Picker Styles */
#icon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-wrapper i {
    font-size: 24px;
    color: #333;
}

.icon-wrapper:hover {
    background-color: var(--dark-spring-green);
    border-color: var(--dark-spring-green);
    transform: translateY(-2px);
}

.icon-wrapper:hover i {
    color: white;
}

/* Custom class for centering text */
.center-text-message {
    text-align: center !important;
    width: 100%;
    display: block;
}

@media (max-width: 767.98px) {
    #heroCarousel .hero-image {
        object-position: center;
    }
}

@media (max-width: 991.98px) { /* For mobile and tablets */
    #about-us .about-image {
        display: block;
        margin: 0 auto;
    }
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quick-action-card .flex-grow-content {
    flex-grow: 1;
}