/** Shopify CDN: Minification failed

Line 3894:0 Expected "}" to go with "{"

**/
 .vm-button-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
}

.vm-btn {
    background: linear-gradient(135deg, #00B050 0%, #00A040 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 176, 80, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.vm-btn:hover {
    background: linear-gradient(135deg, #00A040 0%, #008030 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 176, 80, 0.4);
}

.vm-btn:active {
    transform: translateY(0);
}

.vm-btn i {
    font-size: 1.2em;
}

.vm-btn .dropdown-arrow {
    transition: transform 0.3s ease;
}

.vm-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========================================================================
   VM DROPDOWN MENU - Nested Structure
   ======================================================================== */
/* ========================================================================
   VM DROPDOWN MENU - WHITE THEME
   ======================================================================== */
.vm-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid #00B050;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    max-height: 75vh;
    padding-bottom: 10px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

.vm-dropdown-menu.active {
    display: block;
}

/* ========================================================================
   DROPDOWN HEADER - WHITE WITH SELECT ALL
   ======================================================================== */
.vm-dropdown-header {
    padding: 16px;
    border-bottom: 2px solid #f0f0f0;
    background: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vm-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vm-select-all-btn {
    background: transparent;
    border: 1px solid #00B050;
    color: #00B050;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vm-select-all-btn:hover {
    background: #00B050;
    color: white;
}

.vm-select-all-btn.selected {
    background: #00B050;
    color: white;
}

/* ========================================================================
   PRODUCT LIST - WHITE BACKGROUND
   ======================================================================== */
.vm-product-list {
    padding: 8px;
    background: white;
}
.vm-product-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #f0f0f0;
}

/* ✅ DEFAULT: Name green (bina select kiye) */
.vm-product-item span {
    color: #00B050 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ✅ HOVER: Light green background */
.vm-product-item:hover {
    background: #f0faf0;
    transform: translateX(4px);
    border-color: #00B050;
}

/* ✅ SELECTED: Full block green + white text */
.vm-product-item.selected {
    background: #00B050 !important;
    border-left: 4px solid #007030;
    transform: translateX(0);
}

.vm-product-item.selected span {
    color: white !important;
    font-weight: 700 !important;
}

/* ✅ Sub-items bhi same */
.vm-sub-item span {
    color: #00B050 !important;
    font-weight: 500;
}

.vm-sub-item.selected {
    background: #00B050 !important;
    border-left: 4px solid #007030;
}

.vm-sub-item.selected span {
    color: white !important;
    font-weight: 700 !important;
}
/* ========================================================================
   ACTION BUTTONS - GREEN GENERATE
   ======================================================================== */
.vm-dropdown-footer {
    padding: 12px 16px;
    border-top: 2px solid #f0f0f0;
    background: white;
    border-radius: 0 0 10px 10px;
    display: flex;
    gap: 8px;
    flex-direction: column;
     margin-bottom: 4px;
}

.vm-action-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vm-action-btn.generate-all,
.vm-action-btn.generate-selected {
    background: #00B050; /*  Green instead of orange */
    color: white;
}

.vm-action-btn.generate-all:hover,
.vm-action-btn.generate-selected:hover {
    background: #008030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 176, 80, 0.3);
}

.vm-action-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

.vm-action-btn.cancel:hover {
    background: #e0e0e0;
}

/* ========================================================================
   SELECTED PRODUCTS INDICATOR
   ======================================================================== */
.vm-selected-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* ========================================================================
   SCROLLBAR STYLING
   ======================================================================== */
.vm-dropdown-menu::-webkit-scrollbar,
.vm-sub-dropdown::-webkit-scrollbar {
    width: 6px;
}

.vm-dropdown-menu::-webkit-scrollbar-track,
.vm-sub-dropdown::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.vm-dropdown-menu::-webkit-scrollbar-thumb,
.vm-sub-dropdown::-webkit-scrollbar-thumb {
    background: #00B050;
    border-radius: 3px;
}

.vm-dropdown-menu::-webkit-scrollbar-thumb:hover,
.vm-sub-dropdown::-webkit-scrollbar-thumb:hover {
    background: #008030;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */
@media (max-width: 768px) {
    .vm-button-container {
        top: 75px;
        right: 12px;
    }
    
    .vm-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .vm-dropdown-menu {
        min-width: 280px;
        max-width: 90vw;
    }
    
    .vm-sub-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 280px;
        max-width: 90vw;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .vm-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .vm-dropdown-menu {
        min-width: 260px;
    }
    
    .vm-product-item {
        padding: 10px 12px;
    }
    
    .vm-product-item-text .product-desc {
        display: none;
    }
}

/* ========================================================================
   LOADING STATE
   ======================================================================== */
.vm-action-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.vm-action-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.vm-loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00B050;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 176, 80, 0.2);
}

/* ========================================================================
   DARK MODE SUPPORT (Optional)
   ======================================================================== */
@media (prefers-color-scheme: dark) {}
    .vm-dropdown-menu {
        background: #2a2a2a;
        border-color: #00B050;
    }
    
    .vm-dropdown-header,
    .vm-dropdown-footer {
        background: #1f1f1f;
        color: #fff;
    }
    
    .vm-product-item {
        color: #e0e0e0;
    }
    
    .vm-product-item:hover {
        background: #333;
    }
    
    .vm-product-item-text {
        color: #e0e0e0;
    }
    
    .vm-product-item-text .product-name {
        color: #fff;
    }
    
    .vm-product-item-text .product-desc {
        color: #999;
    }
        /* --- THEME COLORS --- */
        :root {
            --primary-color: #6a994e; /* Light Green */
            --primary-dark: #4a7738;
            --background-light: #f7fff5;
            --chat-bubble-user: #e6f7df; /* Lighter Green for chat */
        }
        
        /* --- CORE LAYOUT & FULL SCREEN --- */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden; 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--background-light);   
        }
       .container {
            display: flex; /* Use flexbox for horizontal layout */
            width: 100vw;
            height: 100vh;
            background-color: #fff;
            overflow: hidden;
        }
        
        /* Add basic sizing for the main panels */
        .product-display-panel {
            /* Takes 2/3 of the space, adjust as needed */
            flex: 2; 
            overflow: hidden; 
            display: flex; /* Make sure its children (like the image) align well */
            flex-direction: column;
        }
        
        .chat-panel {
            /* Takes 1/3 of the space, adjust as needed */
            flex: 1; 
            display: flex;
            flex-direction: column;
            border-left: 1px solid #e0e0e0; /* Optional separator */
        }
        



       /* 🌿 GREEN CHAT HISTORY PANEL - ENHANCED */
.history-panel {
    height: 100%;
    flex: 0 0 280px;
    background: linear-gradient(180deg, #e7f6e1 0%, #cfe8c0 100%);
    border-right: 2px solid #a7cba2;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.05);
    padding: 18px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease-in-out;
    position: relative;
}

/* 🔘 Sidebar collapse animation */
.history-panel.collapsed {
    flex: 0 0 70px;
    overflow: hidden;
}

/* 🌱 Header Button (Chat History Toggle) */
.history-toggle-header {
    background: var(--primary-color, #6a994e);
    color: white;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: background 0.3s ease;
}
.history-toggle-header:hover {
    background: var(--primary-dark, #4a7738);
}
.history-toggle-header i {
    transition: transform 0.3s ease;
}
.history-toggle-header.active i {
    transform: rotate(180deg);
}

.container {
  display: flex;
  width: calc(100vw - 70px);
  height: 100vh;
  background-color: #fff;
  overflow: hidden;
  margin-left: 70px; /* ⬅️ space for collapsed sidebar */
  transition: margin-left 0.3s ease;
}

.smart-sidebar:hover ~ .container {
  margin-left: 240px; /* ⬅️ matches expanded width */
}


/* 🔄 Chat Item */
.history-item {
    background: #f6fff4;
    border: 1px solid #cde5c1;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    cursor: pointer;
}
.history-item:hover {
    background: #e7f7e3;
    transform: translateX(4px);
}
.history-item.selected {
    background: #def5d6;
    border-color: var(--primary-color, #6a994e);
}

/* 🗂️ Chat Image Preview */
.history-item img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #b4d2a3;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 🧩 Icons (Delete / Edit) */
.history-item .icons {
    display: flex;
    gap: 6px;
}
.history-item .icons i {
    color: #558a46;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.history-item .icons i:hover {
    color: #2f5d26;
}

/* ➕ New Chat Button */
.new-chat-btn {
    background: #6a994e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.new-chat-btn:hover {
    background: #588f3e;
    transform: scale(1.03);
}

/* 📂 Folder (Downloaded Images Section) */
.download-folder {
    margin-top: 15px;
    background: #e7f4e0;
    border: 1px solid #c4dfb8;
    border-radius: 10px;
    padding: 12px;
}
.download-folder h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #4a7738;
}
.download-folder img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    margin: 5px;
    border: 1px solid #c6dec0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 🎨 Theme Options */
.theme-section {
    margin-top: 15px;
    padding: 12px;
    background: #f5fbf3;
    border-radius: 8px;
    border: 1px solid #d8ead3;
}
.theme-section h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4a7738;
}
.theme-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    cursor: pointer;
    border: 2px solid #c7dfbc;
    transition: transform 0.2s;
}
.theme-color:hover {
    transform: scale(1.2);
}
.theme-color.green { background: #6a994e; }
.theme-color.brown { background: #8b5e34; }
.theme-color.pink { background: #e79bb7; }
.theme-color.blue { background: #4b8bd4; }

/* 👤 Login Button */
.login-btn {
    margin-top: auto;
    background: linear-gradient(90deg, #558a46, #78b36b);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}
.login-btn:hover {
    background: linear-gradient(90deg, #4a7738, #659c59);
    transform: scale(1.04);
}

/* 🧭 Scrollbar (soft green) */
.chat-history-container::-webkit-scrollbar {
    width: 6px;
}
.chat-history-container::-webkit-scrollbar-thumb {
    background-color: #a7ca9c;
    border-radius: 10px;
}
.chat-history-container::-webkit-scrollbar-thumb:hover {
    background-color: #7aa66e;
}

/* ------------------------------------------------------------------------- */
/* NEW MOBILE SIDEBAR STYLES */
/* ------------------------------------------------------------------------- */
.mobile-header {
    display: none; /* Hidden by default, only visible on mobile */
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed; /* Fixed to stay at the top */
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    z-index: 10;
}

.mobile-menu-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1.2em;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
}

.mobile-title {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-dark);
}

#mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
    transition: opacity 0.3s;
    opacity: 0;
}

#mobile-backdrop.visible {
    display: block;
    opacity: 1;
}



.chat-history-container::-webkit-scrollbar {
    width: 6px;
}
.chat-history-container::-webkit-scrollbar-thumb {
    background-color: #a7ca9c;
    border-radius: 10px;
}
.chat-history-container::-webkit-scrollbar-thumb:hover {
    background-color: #7aa66e;
}



        
        /* 2. DESIGNER PANEL (CENTER) */
        .designer-panel {
            height: 100%;
            flex: 0 0 400px; /* Fixed width */
            padding: 25px 30px;
            border-right: 1px solid #e0e0e0;
            overflow-y: auto; 
            display: flex;
            flex-direction: column;
            background-color: #fff;
            padding-bottom: 20px; 
        }


        /* 3. CHAT PANEL (RIGHT MAIN AREA) */
        /* 3. CHAT PANEL (RIGHT MAIN AREA) */
.chat-panel {
    height: 100%;
    flex-grow: 1; /* Takes up main remaining space */
    display: flex !important; /* ✅ FIX: Force the chat panel to display */
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    background-color: var(--background-light); 
}
        
        /* --- SECTION STYLES (No Change) --- */
        h2 {
            color: var(--primary-dark);
            margin-top: 0;
            margin-bottom: 25px;
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 4px;
            font-size: 1.5em;
        }
        .section {
            margin-bottom: 5px;
            padding: 5px;
            border-radius: 8px;
            background-color: #ffffff; 
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        

        .section-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #2e8b21;
  position: relative;
  margin-bottom: 18px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1s ease forwards;
}

/* --- Underline --- */
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #a3d79f, #8ffb91);
  border-radius: 2px;
  animation: underlineGrow 1s 0.5s ease forwards;
}

/* --- Keyframes --- */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineGrow {
  from { width: 0; }
  to { width: 60px; }
}

        
        /* Sub-option container */
        .sub-option-selector {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            overflow-x: auto; 
            padding: 5px 0;
        }
        .sub-option-selector::-webkit-scrollbar { height: 8px; }
        .sub-option-selector .product-item {
            flex-shrink: 0; 
            width: 120px; 
        }

       

    

 
        /* --- PRODUCT GRID CONTAINER (2-ROW SCROLL) --- */
        .product-selector-wrapper {
            height: 240px; 
            overflow-y: hidden; 
            overflow-x: auto; 
            padding-bottom: 10px;
            border: 1px solid #e9ecef; 
            border-radius: 8px;
            padding: 10px;
        }
        .product-selector-wrapper::-webkit-scrollbar { height: 8px; }
        .product-selector-wrapper::-webkit-scrollbar-thumb {
            background-color: #ced4da;
            border-radius: 10px;
        }
        .product-selector {
            display: grid;
            grid-template-rows: repeat(2, 1fr); 
            grid-auto-flow: column; 
            gap: 10px;
            width: fit-content; 
            padding-bottom: 15px; 
        }

        /* 1. KEYFRAMES ANIMATION: स्लाइड की गति और दूरी सेट करता है */
@keyframes slide-loop {
    /* शुरुआत में कोई मूवमेंट नहीं */
    0% { transform: translateX(0); }
    /* लिस्ट की 50% चौड़ाई तक मूव करता है (डुप्लीकेट लिस्ट तक) */
    /* यह दूरी, डुप्लीकेट लिस्ट की शुरुआत में सीमलेस लूप बनाने के लिए ज़रूरी है */
    100% { transform: translateX(-75%); } 
}

/* --- WRAPPER / VIEWPORT: (पहले .product-selector-wrapper था) --- */
.product-selector-wrapper {
    /* मैन्युअल स्क्रॉलिंग हटा दी गई है */
    /* overflow-x: auto; की जगह अब overflow: hidden; का इस्तेमाल होगा */
    
    height: 240px; 
    overflow-y: hidden; 
    overflow-x: hidden; /* ⬅️ CRITICAL: हॉरिजॉन्टल स्क्रॉलिंग हटाकर हिडन किया गया */
    position: relative; /* एनिमेशन के लिए ज़रूरी */
    
    padding-bottom: 10px;
    border: 1px solid #e9ecef; 
    border-radius: 8px;
    padding: 10px;
}
/* स्क्रॉलबार स्टाइल हटा दिए गए क्योंकि अब स्क्रॉल नहीं होगा */
.product-selector-wrapper::-webkit-scrollbar { height: 0; }
.product-selector-wrapper::-webkit-scrollbar-thumb { background-color: transparent; }

/* --- SLIDER CONTAINER: (पहले .product-selector था) --- */
.product-selector {
    /* ग्रिड सेटिंग्स: 2 पंक्तियाँ और हॉरिजॉन्टल फ्लो (कोई बदलाव नहीं) */
    display: grid;
    grid-template-rows: repeat(2, 1fr); 
    grid-auto-flow: column; 
    gap: 10px;
    
    /* ⚠️ CRITICAL: कंटेनर की चौड़ाई को डुप्लीकेटेड कंटेंट के लिए 200% करें */
    width: 200%; 
    height: 100%;
    
    /* ✅ AUTO-SLIDE APPLIED: 30 सेकंड में एक चक्र पूरा होगा, जो अनंत तक चलेगा */
    /* animation: slide-loop 20s linear infinite; 
     */
    /* मैन्युअल width: fit-content; हटा दिया गया है */
    padding-bottom: 15px; 
}

/* 💡 OPTIONAL: माउस ले जाने पर एनिमेशन रुक जाए */
.product-selector:hover {
    animation-play-state: running;
}


/* --- PRODUCT ITEM STYLES (कोई बदलाव नहीं) --- */
.product-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start; 
    cursor: pointer;
    padding: 0; 
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    background-color: #f0f0f0; 
    font-size: 0.85em;
    width: 120px; 
    height: 125px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden; 
}
.product-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 153, 78, 0.4);
    background-color: var(--chat-bubble-user); 
}
/* Common Image Styles (कोई बदलाव नहीं) */
.product-item img {
    width: 100%; 
    object-fit: cover; 
    margin-bottom: 0;
    border-radius: 0; 
}
.product-selector .product-item {
    height: 100px; 
    justify-content: center;
}
.product-selector .product-item img {
    height: 100%; 
}
.product-selector .product-item span {
    display: block !important;
}
 


/* Pause animation on hover */
.product-selector-wrapper:hover .product-selector {
  animation-play-state: paused;
}
/* 🌟 Zoom on Hover */
.product-item:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
        
.product-slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.slider-btn {
  background-color: #6a994e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slider-btn:hover {
  background-color: #4a7738;
  transform: scale(1.1);
}

.product-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.slider-btn {
  background: linear-gradient(145deg, #6a994e, #4a7738);
  color: white;
  border: none;
  border-radius: 12px;
  width: 40px;
  height: 90px;
  font-size: 1.4em;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.slider-btn:hover {
  background: linear-gradient(145deg, #5d8845, #3c6b2b);
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.slider-btn i {
  pointer-events: none;
}
.message-image:hover {
  transform: scale(1.03);
}


.product-selector-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  border-radius: 12px;
  flex-grow: 1;
  padding: 8px;
}

.product-selector {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 10px;
}

/* 🌿 PRODUCT SLIDER CONTAINER */
.product-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* 🌿 SLIDER BUTTONS (floating over images) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #6a994e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Left & Right positioning */
.slider-btn.left {
  left: 6px;
}
.slider-btn.right {
  right: 6px;
}

/* Hover effect */
.slider-btn:hover {
  background: #5d8845;
  transform: translateY(-50%) scale(1.15);
}

/* 🌿 PRODUCT SLIDER CONTAINER */
.product-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* 🌿 SLIDER BUTTONS (floating over images) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #6a994e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* Left & Right positioning */
.slider-btn.left { left: 6px; }
.slider-btn.right { right: 6px; }

/* Hover effect */
.slider-btn:hover {
  background: #5d8845;
  transform: translateY(-50%) scale(1.15);
}

/* 🌿 WRAPPER + SMOOTH SCROLL */
.product-selector-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth; /* smooth magic */
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 10px;
  width: 100%;
}

/* Optional scrollbar style */
.product-selector-wrapper::-webkit-scrollbar {
  height: 6px;
}
.product-selector-wrapper::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 10px;
}

/* 🌿 PRODUCT GRID */
.product-selector {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 10px;
}








        


        /* 1. Make the sub-option card wider and allow height to grow */
.sub-option-item {
    width: 160px !important;       /* Increased width (was likely 120px) */
    height: auto !important;       /* Allow height to adjust for text */
    min-height: 160px;             /* Ensure a consistent minimum height */
    align-items: flex-start !important; /* Align content to top */
    padding-bottom: 10px !important;
}

/* 2. Fix the Image height */
.sub-option-item img {
    width: 100% !important;
    height: 110px !important;      /* Fixed height for image */
    object-fit: contain !important;
    margin-bottom: 5px;
}

/* 3. Allow the text to wrap to the next line */
.sub-option-item span {
    display: block !important;     
    white-space: normal !important; /* CRITICAL: Allows text to wrap */
    overflow: visible !important;   /* Shows text that overflows */
    text-overflow: clip !important; /* Removes the "..." ellipsis */
    
    font-size: 13px !important;     /* Slightly smaller font to fit more */
    line-height: 1.3 !important;    /* Better spacing between lines */
    text-align: center;
    width: 100%;
    padding: 0 5px;
}

        .message-image {
    display: block;
    max-width: 250px;
    border-radius: 10px;
    margin-top: 8px;
}



        /* 🎨 COLOR PALETTE STYLES (No Change) 🎨 */
        
        /* The container for the main button and AI button */
        .color-palette-header {
            display: flex;
            justify-content: space-between; 
            align-items: center;
            margin-bottom: 15px;
            gap: 10px;
        }
        
        /* The button that opens the color palette */
        .select-color-btn {
            background-color: #f0f0f0;
            color: #344563;
            padding: 10px 15px;
            border: 2px solid #ccc;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 600;
            transition: all 0.2s;
            flex-grow: 1; 
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .select-color-btn:hover {
            border-color: var(--primary-color);
            background-color: #e6f6e0;
        }

        /* The small indicator circle */
        .color-indicator {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid #555;
            transition: background-color 0.2s;
        }
        
        /* Color Swatches Row (Hidden by default, will be toggled) */
        .color-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-top: 10px;
            transition: all 0.3s ease-out;
            /* Shuru mein hidden rahega - JS isko 'display: flex' karega */
            display: none; 
        }

        .color-swatch {
  width: 50px;
  height: 35px;
  background: var(--color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
}

/* Hover animation */
.color-swatch:hover {
  transform: scale(1.15) rotate(2deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

        .color-swatch.selected {
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 4px var(--chat-bubble-user); 
            transform: scale(1.05);
        }
        


        
        /* --- LOGO UPLOAD STYLES (Updated for balance) --- */
.logo-preview-container {
    display: flex;
    flex-direction: column; /* stacked layout for balance */
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 7px;
}

.logo-preview {
    width: 100%; /* same as input width */
    height: 70px; /* balanced height for preview area */
    border: 2px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.logo-preview:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.logo-label {
    width: 90%;
    margin: 10px auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background-color: #6a994e; /* same as generate-btn */
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;

    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.logo-label:hover {
    background-color: #5d8845; /* darker shade */
    transform: translateY(-2px); /* slight lift effect */
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25); /* hover shadow */
}

.logo-label:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}


.logo-label:hover {
    background-color: var(--primary-dark);
}

#logoUpload {
    display: none; 
}


        .generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 500px; /* optional limit */
    margin: 5px auto 20px auto; /*TOP margin increased for spacing */
    padding: 14px 24px;

    background-color: #6a994e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background-color: #5d8845;
    transform: translateY(-2px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}


        /* ------------------------------------------------ */
        /* 4. CHAT PANEL (RIGHT MAIN AREA) */
        /* ------------------------------------------------ */
        .chat-panel {
            height: 100%;
            flex-grow: 1; 
            display: flex;
            flex-direction: column;
            padding: 30px;
            box-sizing: border-box;
            background-color: var(--background-light);
            /* Removed history panel, so chat panel takes care of right border */
            border-right: none; 
        }
        
       
        
        /*  --- CHAT PANEL STYLES ---*/
        .chat-header {
            /* display: flex; 
            align-items: center; 
            justify-content: flex-start; /* Aligned to the left */
             /*margin-bottom: 15px;
            gap: 15px;  */

            background-color: #eef3ee; /* Your Green */
            color: white;
            padding: 15px;
            font-size: 1.1em;
            font-weight: bold;
            text-align: center;
        } 
         .chat-header h3 {
            flex-grow: 1; 
            margin: 0;
            font-size: 1.1em;
            color: #344563;
        }  
        
        /* New Chat Button Style (USED IN HISTORY PANEL) - Removed old style to use the new one */

         .chat-input-area {
            /* display: flex;
            padding-top: 15px;
            width: 100%; 
            box-sizing: border-box; */

            display: flex;
            padding: 15px;
            border-top: 1px solid #eee;
            background-color: #fff;
            margin-bottom: 0;
    padding-bottom: 10px; /* exact fit */
        }
        .chat-input {
            flex-grow: 1;
            padding: 12px 20px;
            border: 1px solid #ced4da;
            border-radius: 25px;
            margin-right: 10px;
            font-size: 1em;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
            min-width: 0;
        }
        .chat-send-btn {
            /* flex-shrink: 0;
            background-color: var(--primary-color);
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1em;
            line-height: 1;
            box-shadow: 0 2px 4px rgba(106, 153, 78, 0.3); */

            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 18px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.2s, transform 0.1s ease-out; /* Smooth transition */
        }

        .send-btn:hover {
            background-color: #43A047; /* Slightly darker on hover */
        }

        .send-btn:active {
            transform: scale(0.9); /* Squash/Shrink immediately on click */
        
        }

        .chat-messages {
         
  /* background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
  /* backdrop-filter: blur(5px); /* The magic blur effect */
  /* border: 1px solid rgba(255, 255, 255, 0.2); /* Light, subtle border */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
  /* border-radius: 12px 12px 12px 4px; /* Asymmetrical radius */
  /* padding: 15px;  */ 

             flex-grow: 1; 
             background-color: rgba(255, 255, 255, 0.5);
             backdrop-filter: blur(5px);
            overflow-y: auto;
            padding: 15px;
            background-color: #fff;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            min-height: 0;
            border: 1px solid #eee;
            min-width: 300px; 
        }
        .message-bubble {
             padding: 12px 18px; 
            max-width: 80%; 
            border-radius: 18px;
            line-height: 1.4;
            color: #333;
            box-shadow: 0 1px 1px rgba(0,0,0,0.05);
            align-self: flex-start;
            background-color: #e6e6e6;
            word-wrap: break-word; 
            display: flex;
            flex-direction: column; 
            box-sizing: border-box;  

            /* max-width: 80%;
            margin-bottom: 15px;
            padding: 12px 18px;
            border-radius: 20px;
            line-height: 1.4; */

        }
        .message-bubble.user {
            /* background-color: var(--chat-bubble-user);
            align-self: flex-end; */
            align-self: flex-end;
            background-color: #4CAF50; /* Green background */
            color: white;
            border-bottom-right-radius: 4px; /* Asymmetrical */
        }

        /* --- IMAGE DISPLAY STYLES (No Change) --- */
        .message-bubble .message-content:not(:empty) + .image-container {
            margin-top: 10px;
        }
        
        .message-bubble .image-container {
            text-align: center; 
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 10px;
            background-color: #fdfdfd;
            margin-top: 0; 
            max-width: calc(100% - 20px); 
            box-sizing: border-box; 
            margin: 0 auto; 
        }
        .message-bubble .message-image {
            max-width: 100%; 
            max-height: 550px; 
            width: auto; 
            height: auto; 
            object-fit: contain; 
            border-radius: 6px;
            margin-bottom: 0; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.2s;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            pointer-events: auto;

        }

        .message-bubble .message-download-btn {
            display: inline-block; 
            background-color: var(--primary-color);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 0.9em;
            transition: background-color 0.2s ease;
            cursor: pointer;
            border: none;
        }
        .message-bubble .message-download-btn:hover {
            background-color: var(--primary-dark);
        }

        /* Download Modal Styles (No Change) */
        .download-modal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 10000;
        }
        .download-modal.active {
            display: flex;
        }
        .download-modal-content {
            background-color: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            max-width: 450px;
            width: 100%;
            padding: 30px;
        }
        .download-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .download-modal-header h3 {
            margin: 0;
            color: var(--primary-dark);
            font-size: 1.5em;
        }
        .download-modal-close {
            background: none;
            border: none;
            font-size: 1.5em;
            cursor: pointer;
            color: #666;
            padding: 5px;
            line-height: 1;
        }
        .download-modal-body p {
            color: #666;
            margin-bottom: 20px;
        }
        .download-form-group {
            margin-bottom: 20px;
        }
        .download-form-group label {
            display: block;
            font-weight: 600;
            color: #344563;
            margin-bottom: 8px;
            font-size: 0.95em;
        }
        .download-form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1em;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        .download-form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        .download-form-group.error input {
            border-color: #dc3545;
        }
        .download-error-message {
            color: #dc3545;
            font-size: 0.85em;
            margin-top: 5px;
            display: none;
        }
        .download-form-group.error .download-error-message {
            display: block;
        }
        .download-submit-btn {
            width: 100%;
            background-color: var(--primary-color);
            color: white;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.1s;
        }
        .download-submit-btn:hover {
            background-color: var(--primary-dark);
        }
        .download-submit-btn:active {
            transform: scale(0.98);
        }
        .download-submit-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
        .download-disclaimer {
            font-size: 0.8em;
            color: #999;
            text-align: center;
            margin-top: 15px;
        }

        .loading-spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-left-color: #fff;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
            display: none;
            margin-left: 10px;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }

        }

       






        /* 🖼️ IMAGE PREVIEW MODAL */
#imagePreviewModal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}
#imagePreviewModal .preview-img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
#imagePreviewModal .preview-img:hover {
    transform: scale(1.05);
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}


.disclaimer-note {
    text-align: center;
    font-size: 12px;
    color: #4a4a4a;
    padding: 8px 10px;
    margin-top: 0;  
    margin-bottom: 0;           /* REMOVE BIG SPACE */
    background: #f3f7f1;
    border: 1px solid #d8e6d2;
    border-radius: 8px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.3px;
}











/* 🌿 COLLAPSIBLE SIDEBAR */
.smart-sidebar {
  width: 70px;
  height: 100vh;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  transition: width 0.3s ease, background-color 0.3s;
  z-index: 999;
}

/* ✅ Sidebar expands on hover */
.smart-sidebar:hover {
  width: 240px;
}

/* LOGO */
.sidebar-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}
.sidebar-logo img {
  width: 36px;
  height: auto;
  transition: transform 0.3s ease;
}
.smart-sidebar:hover .sidebar-logo img {
  transform: scale(1.1);
}


/* NAVIGATION ITEMS */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 10px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  border: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95em;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.nav-item i {
  color: #6a994e;
  font-size: 1.3em;
  min-width: 30px;
  text-align: center;
}
.nav-item span {
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.smart-sidebar:hover .nav-item span {
  opacity: 1;
}
.nav-item:hover {
  background-color: #f3f9f2;
  transform: translateX(3px);
}

/* CHAT HISTORY */
.chat-history-section {
  width: 100%;
  border-top: 1px solid #e5e5e5;
}
.chat-history-container {
  display: none;
  flex-direction: column;
  padding: 8px 14px;
  max-height: 200px;
  overflow-y: auto;
}
.chat-history-container.open {
  display: flex;
}
.chat-item {
  background: #f8fff7;
  border: 1px solid #e3e8e1;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 5px;
  font-size: 0.9em;
  cursor: pointer;
}
.chat-item:hover {
  background: #eaf5e8;
}

/* USER LOGIN */
.sidebar-user {
  width: 100%;
  border-top: 1px solid #e0e0e0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f9fff8;
  cursor: pointer;
}
.sidebar-user i {
  color: #6a994e;
  font-size: 1.5em;
}
#userName {
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
  color: #333;
}
.smart-sidebar:hover #userName {
  opacity: 1;
}

/* Scrollbar for chat list */
.chat-history-container::-webkit-scrollbar {
  width: 6px;
}
.chat-history-container::-webkit-scrollbar-thumb {
  background: #bcd6b2;
  border-radius: 6px;
}




/* 🌿 Sidebar Base */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 10px;
}

/* 🌿 Each Nav Item */
.nav-item {
  background: none;
  border: none;
  color: #025802; /* Default text color */
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* 🌿 Icon Styling */
.nav-item i.bi {
  font-size: 1.3rem;
  color: #025802; /* Primary Green */
  transition: color 0.25s ease, transform 0.25s ease;
}

/* 🌿 Hover Effect */
.nav-item:hover {
  background-color: rgba(106, 153, 78, 0.1);
  transform: translateX(5px);
}

.nav-item:hover i.bi {
  color: #6a994e; /* Lighter green on hover */
  transform: scale(1.2);
}

/* 🌿 Active (Selected) State */
.nav-item.active {
  background-color: #e6f6e0; /* Soft green background */
  border-left: 4px solid #025802;
}

.nav-item.active i.bi {
  color: #025802;
}

/* 💬 Chat History Section */
.chat-history-section {
  margin-top: 20px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

#chatHistoryToggle {
  width: 100%;
  justify-content: space-between;
}

/* 👤 User Section */
.sidebar-user {
  margin-top: auto;
  padding: 15px;
  background-color: #f4faf0;
  border-top: 1px solid #d8e8d0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0 0 10px 10px;
}

.sidebar-user i.bi {
  font-size: 1.4rem;
  color: #025802;
}

.sidebar-user span {
  font-weight: 600;
  color: #025802;
}

/* 🌿 Optional: Sidebar Hover Glow (when expanded) */
.smart-sidebar:hover {
  box-shadow: 0 0 10px rgba(21, 56, 1, 0.2);
  transition: box-shadow 0.3s ease;
}






/* 📁 Library dropdown container */
/* 🖼️ Library Overlay Styles */
#libraryOverlay {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.library-card {
  background: #f9fff8;
  border: 2px solid #d0e8d0;
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.library-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(106, 153, 78, 0.2);
  border-color: #6a994e;
}

.library-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
}

.library-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.library-card-title {
  font-weight: 600;
  color: #2e5c2e;
  font-size: 0.95em;
}

.library-card-date {
  font-size: 0.8em;
  color: #777;
}

.library-download-btn {
  width: 100%;
  background: #6a994e;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s;
}

.library-download-btn:hover {
  background: #5d8845;
}






/* Chat layout restore */
.chat-main-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

/* Chat messages area scroll fix */
#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    border-radius: 12px;
}

/* Align messages cleanly */
.message-bubble {
    max-width: 80%;
    margin: 8px 0;
}

.message-bubble.user {
    margin-left: auto;
}

.message-bubble.ai {
    margin-right: auto;
}

/* Welcome texts spacing */
.chat-welcome {
    margin-bottom: 15px;
    font-size: 15px;
}

/* Chat container container width fix */
#chatContainer {
    display: flex;
    flex-direction: column;
     height: 100vh !important;
}


        








.chat-history-container {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f6fff4;
    border: 1px solid #cde5c1;
    margin-bottom: 8px;
    cursor: pointer;
}

.chat-item:hover {
    background: #e7f7e3;
}

.chat-item .chat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #c4dfb8;
}

.chat-title {
    font-size: 14px;
    font-weight: 600;
    color: #344563;
}

.chat-menu {
    position: relative;
}

.menu-btn {
    font-size: 16px;
    cursor: pointer;
}

.menu-popup {
    display: none;
    position: absolute;
    right: 0;
    top: 22px;
    width: 140px;
    background: white;
    border: 1px solid #d9e6d3;
    border-radius: 8px;
    z-index: 10;
}

.menu-popup.open {
    display: block;
}

.menu-item {
    padding: 10px;
    cursor: pointer;
}

.menu-item:hover {
    background: #e6f4e3;
}

/* Ensure the country dropdown appears ABOVE the modal */
.iti__country-list {
    z-index: 10001 !important; 
}
.iti {
    width: 100%; /* Ensure input takes full width */
}



/* 🌟 AI Suggest Button – Always Green */
.ai-color-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #27ae60;
    background: #047332 !important;   /* Always green */
    color: white !important;
    font-weight: 700;
    cursor: pointer;
    margin: 6px;
    transition: 0.2s ease;
    font-size: 13px;
    letter-spacing: 0.3px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Remove default browser tooltip (we won't add "title") */
}

/* Hover effect */
.ai-color-btn:hover {
    background: #1c964d !important;
    border-color: #1fae56 !important;
    box-shadow: 0 3px 8px rgba(46,204,113,0.35);
    transform: translateY(-1px);
}

/* Selected state — deeper glow */
.ai-color-btn.selected {
    background: #067936 !important;
    border-color: #096330 !important;
    box-shadow: 0 4px 12px rgba(46,204,113,0.55);
}




/* ====================================================================
   ðŸ"± COMPLETE MOBILE RESPONSIVE DESIGN - BEAUTIFUL UI
   ==================================================================== */
   /* ====================================================================
   📱 COMPLETE MOBILE RESPONSIVE DESIGN - BEAUTIFUL UI
   ==================================================================== */

@media (max-width: 768px) {
    
    /* ==================== RESET & BASE ==================== */
    html, body {
        overflow-x: hidden;
        width: 100vw;
        height: 100vh;
    }
    
    * {
        box-sizing: border-box;
    }

    /* ==================== HIDE DESKTOP SIDEBAR ==================== */
    .smart-sidebar {
        display: none !important;
    }

    /* ==================== MAIN CONTAINER ==================== */
    .container {
        margin-left: 0 !important;
        width: 100vw !important;
        height: 100vh;
        flex-direction: column;
        overflow: hidden;
    }

    /* ==================== MOBILE HEADER (TOP BAR) ==================== */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(135deg, #6a994e 0%, #5d8845 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 100;
        padding: 0 15px;
        align-items: center;
        justify-content: space-between;
        animation: slideDown 0.5s ease;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        padding: 10px 14px;
        font-size: 1.4em;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.3);
    }

    .mobile-title {
        margin: 0;
        font-size: 1.1em;
        font-weight: 700;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        letter-spacing: 0.5px;
        flex-grow: 1;
        text-align: center;
        padding: 0 10px;
    }

    /* ==================== MOBILE HEADER ICONS ==================== */
    .mobile-header-icons {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-icon-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        padding: 8px 10px;
        font-size: 1.1em;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .mobile-icon-btn:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.3);
    }

    /* ==================== MOBILE HISTORY DROPDOWN ==================== */
    .mobile-history-dropdown {
        position: fixed;
        top: 65px;
        right: 10px;
        width: 85vw;
        max-width: 320px;
        max-height: 400px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
        padding: 15px;
        display: none;
        animation: slideDown 0.3s ease;
        display: none;
    }

    .mobile-history-dropdown.open {
        display: block;
    }

    .mobile-history-dropdown h4 {
        margin: 0 0 15px 0;
        color: #2e5c2e;
        font-size: 1.1em;
        border-bottom: 2px solid #6a994e;
        padding-bottom: 8px;
    }

    /* ==================== DESIGNER PANEL (SIDEBAR) ==================== */
    .designer-panel {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90vw;
        max-width: 380px;
        height: 100dvh;
        background: linear-gradient(180deg, #ffffff 0%, #f8fff5 100%);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px 15px;
        padding-top: 70px; /* Space for close button */
    }

    .designer-panel.open {
        left: 0;
        animation: slideInLeft 0.4s ease;
    }

    @keyframes slideInLeft {
        from {
            left: -100%;
            opacity: 0.5;
        }
        to {
            left: 0;
            opacity: 1;
        }
    }

    /* Custom Scrollbar for Designer Panel */
    .designer-panel::-webkit-scrollbar {
        width: 6px;
    }

    .designer-panel::-webkit-scrollbar-track {
        background: rgba(106, 153, 78, 0.1);
        border-radius: 10px;
    }

    .designer-panel::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #6a994e, #5d8845);
        border-radius: 10px;
    }

    /* ==================== CLOSE BUTTON (ONLY ON DESIGNER PANEL) ==================== */
    .mobile-close-btn {
        display: none; /* Hidden by default */
        position: fixed;
        top: 15px;
        right: 15px;
        background: linear-gradient(135deg, #ff5757, #ff3838);
        color: white;
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
        cursor: pointer;
        z-index: 1002;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(255, 56, 56, 0.4);
        transition: all 0.3s ease;
    }

    /* ✅ Only show when designer panel is open */
    .designer-panel.open .mobile-close-btn {
        display: flex !important;
    }

    .mobile-close-btn:active {
        transform: scale(0.9) rotate(90deg);
        box-shadow: 0 2px 8px rgba(255, 56, 56, 0.6);
    }

    /* ==================== BACKDROP (OVERLAY) ==================== */
    #mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    #mobile-backdrop.visible {
        display: block;
        opacity: 1;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* ==================== CHAT PANEL (MAIN CONTENT) ==================== */
    .chat-panel {
        width: 100% !important;
        height: calc(100vh - 60px);
        margin-top: 60px;
        padding: 15px !important;
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, #f7fff5 0%, #ffffff 100%);
    }

    .chat-header {
        display: none; /* Hide desktop chat header */
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 15px 10px;
        background: white;
        border-radius: 16px;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
    }

    /* Better Message Bubbles */
    .message-bubble {
        max-width: 85% !important;
        padding: 12px 16px;
        margin: 10px 0;
        border-radius: 18px;
        font-size: 0.95em;
        line-height: 1.5;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        animation: messageSlideIn 0.3s ease;
    }

    @keyframes messageSlideIn {
        from {
            transform: translateY(10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .message-bubble.user {
        background: linear-gradient(135deg, #6a994e, #5d8845);
        color: white;
        border-bottom-right-radius: 6px;
        margin-left: auto;
    }

    .message-bubble.ai {
        background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
        color: #333;
        border-bottom-left-radius: 6px;
    }

    /* Message Images */
    .message-image {
        max-width: 100% !important;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* ==================== CHAT INPUT AREA ==================== */
    .chat-input-area {
        display: flex;
        gap: 10px;
        padding: 12px;
        background: white;
        border-radius: 25px;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    .chat-input {
        flex: 1;
        padding: 12px 18px;
        border: 2px solid #e0e0e0;
        border-radius: 20px;
        font-size: 0.95em;
        background: #f9f9f9;
        transition: all 0.3s ease;
    }

    .chat-input:focus {
        border-color: #6a994e;
        background: white;
        outline: none;
        box-shadow: 0 0 0 3px rgba(106, 153, 78, 0.1);
    }

    .chat-send-btn {
        background: linear-gradient(135deg, #6a994e, #5d8845);
        color: white;
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        font-size: 1.2em;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(106, 153, 78, 0.4);
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .chat-send-btn:active {
        transform: scale(0.9);
        box-shadow: 0 2px 8px rgba(106, 153, 78, 0.6);
    }

    /* ==================== DESIGNER PANEL ELEMENTS ==================== */
    .designer-panel h2 {
        font-size: 1.5em;
        color: #2e5c2e;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 3px solid #6a994e;
        text-align: center;
    }

    .section {
        margin-bottom: 20px;
        padding: 15px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .section-title {
        font-size: 1.1em !important;
        color: #2e8b21;
        margin-bottom: 12px;
        font-weight: 600;
    }

    /* Product Slider */
    .product-slider-container {
        position: relative;
        padding: 10px 0;
    }

    .slider-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.1em !important;
        background: linear-gradient(135deg, #6a994e, #5d8845) !important;
    }

    .product-selector-wrapper {
        height: 200px !important;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 5px;
    }

    .product-item {
        width: 100px !important;
        height: 90px !important;
        font-size: 0.8em;
    }

    .product-item img {
        height: 70% !important;
    }

    /* Color Palette */
    .color-swatch {
        width: 42px !important;
        height: 42px !important;
        margin: 5px;
    }

    .ai-color-btn {
        padding: 10px 14px !important;
        font-size: 0.85em !important;
        margin: 5px;
    }

    /* Logo Upload */
    .logo-preview-container {
        margin-top: 10px;
    }

    .logo-preview {
        height: 80px !important;
        border-radius: 10px;
    }

    .logo-label {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 0.95em;
        margin-top: 12px;
    }

    /* Brand Name Input */
    #brandNameInput {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.95em !important;
    }

    /* Generate Button */
    .generate-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1.05em !important;
        margin: 20px 0 15px 0 !important;
        border-radius: 12px;
    }

    /* Disclaimer */
    .disclaimer-note {
        font-size: 0.85em !important;
        padding: 10px !important;
        margin-top: 10px;
    }

    /* ==================== DOWNLOAD MODAL ==================== */
    .download-modal-content {
        max-width: 90% !important;
        margin: 20px;
        padding: 25px 20px !important;
    }

    .download-modal-header h3 {
        font-size: 1.3em;
    }

    .download-form-group input {
        font-size: 0.95em;
        padding: 14px;
    }

    .download-submit-btn {
        font-size: 1em;
        padding: 16px;
    }

    /* ==================== LIBRARY OVERLAY ==================== */
    #libraryOverlay {
        padding: 15px !important;
        padding-top: 70px !important; /* Space for mobile header */
    }

    #libraryGrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }

    .library-card {
        padding: 10px !important;
    }

    .library-card img {
        height: 150px !important;
    }

    /* Close Library Button */
    #closeLibraryBtn {
        position: fixed !important;
        top: 10px;
        right: 10px;
        z-index: 10000;
        padding: 10px 18px !important;
        font-size: 0.9em !important;
    }

    /* ==================== UTILITY CLASSES ==================== */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Prevent text selection during animations */
    .designer-panel.open,
    .chat-panel {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Smooth scroll for all containers */
    * {
        -webkit-overflow-scrolling: touch;
    }

}

/* ==================== TABLET VIEW (768px - 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .designer-panel {
        flex: 0 0 350px !important;
    }

    .chat-panel {
        padding: 20px !important;
    }

    .product-item {
        width: 110px !important;
        height: 95px !important;
    }
}
 



/* ========================================= */
/* 🚀 FINAL FIX: Chat Panel Visibility (Desktop) */
/* ========================================= */
/* Yeh code 1001px ya usse bade screens par Chat Panel ko zabardasti dikhaega aur sahi jagah par laega. */
@media (min-width: 1001px) {
    
    /* 1. Chat Panel ko Visible aur Sahi Position par laana */
    .chat-panel {
        display: flex !important; /* Hamesha dikhao */
        position: relative !important; /* Mobile fixed/absolute position ko hatao */
        width: auto !important; /* Mobile ki 100vw width ko hatao */
        flex-grow: 1 !important; /* Bachi hui jagah lo (Product Panel ke bagal mein) */
        
        /* Mobile-specific scrollbar ko hatao */
        overflow-y: hidden !important;
        overflow-x: hidden !important; 
        
        /* Background aur padding ko wapas set karein */
        padding: 30px !important;
        background-color: var(--background-light) !important; 
    }

    /* 2. Designer Panel (Product Panel) ko bhi theek karna */
    .designer-panel {
        position: relative !important; /* Agar mobile pe absolute/fixed tha toh hatao */
        transform: none !important; /* Agar mobile pe slide hua tha toh reset karo */
        flex: 0 0 400px !important; /* Apni purani width wapas lo */
    }
    
    /* 3. Mobile History Dropdown ko hamesha chhupana (agar galati se dikh raha ho) */
    #mobileHistoryDropdown {
        display: none !important;
    }
     html, body {
        overflow-y: auto !important;
    }

    .container {
        height: calc(100vh - 20px);
    }

    .designer-panel {
        overflow-y: auto;
    }

    .chat-panel {
        overflow-y: auto;
    }
}
.history-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    /* ... baaki styles ... */
    display: none;
}
.history-dropdown.open {
    display: block;
}

.quick-generate-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 5px 0;
}

.quick-generate-btn {
    background: #6a994e;
    color: #fff;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

.quick-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.35);
}

.quick-generate-btn i {
    font-size: 18px;
}



/* ====================================================================
   🎨 COMPLETE COLOR PICKER SYSTEM
   ==================================================================== */

/* Main Button */
.select-color-btn {
    width: 100%;
    background-color: #f0f0f0;
    color: #344563;
    padding: 12px 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-color-btn:hover {
    border-color: #6a994e;
    background-color: #e6f6e0;
}

.select-color-btn.active {
    border-color: #6a994e;
    background-color: #e6f6e0;
}

/* Dropdown Menu */
.color-dropdown-menu {
    margin-top: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Input */
#colorSearchInput:focus {
    border-color: #6a994e !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 153, 78, 0.1);
}

/* Color Swatches */
.color-swatch {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.color-swatch:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.color-swatch.selected {
    border-color: #2e5c2e;
    box-shadow: 0 0 0 4px rgba(46, 92, 46, 0.3);
    transform: scale(1.1);
}

.color-swatch.hidden {
    display: none !important;
}

/* Square Color Cells */
.square-color-cell {
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.square-color-cell:hover {
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
    border: 2px solid white;
}

.square-color-cell.selected {
    transform: scale(1.3);
    box-shadow: 0 0 0 3px #2e5c2e;
    z-index: 10;
    border: 2px solid white;
}

.square-color-cell.hidden {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    #squareColorPalette {
        grid-template-columns: repeat(12, 1fr) !important;
    }
    
    #colorSwatchGrid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

















/* Add to your style block (keeps results clean) */
.product-search-item {
    display: inline-block !important;
    vertical-align: top;
    width: 120px;
    padding: 10px;
    margin-right: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;
}

.product-search-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.product-search-item:hover { background:#f3faf1; }
.product-search-item img { width:56px; height:42px; object-fit:cover; border-radius:6px; border:1px solid #eee; }
.product-search-sub { font-size:13px; color:#556; padding-left:66px; margin-top:6px; }
.no-results { padding:12px; color:#888; text-align:center; }
.search-hit { font-weight:600; color:#234e20; }



/* ===== FINAL: Force horizontal ribbon for search results ===== */
#productSearchResults {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 14px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

/* Ensure any wrapper inside becomes a horizontal row too */
#productSearchResults > * {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  flex-direction: column !important; /* image above, name below */
  align-items: center !important;
  justify-content: flex-start !important;
  width: 140px !important;
  min-width: 120px !important;
  padding: 8px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid #eee !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* Images inside cards */
#productSearchResults img {
  width: 90px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  display: block !important;
  margin: 0 0 8px 0 !important;
}

/* Card text (product / subproduct name) */
#productSearchResults > * > div,
#productSearchResults .product-search-item > div,
#productSearchResults .product-search-sub > div {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #333 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Thin horizontal scrollbar styling (optional) */
#productSearchResults::-webkit-scrollbar { height: 10px; }
#productSearchResults::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 6px; }

/* Safety: prevent parent flex rules from breaking this row */
#productSearchResults, #productSearchResults * { -webkit-box-sizing: border-box !important; box-sizing: border-box !important; }

/* ================= SEARCH IMAGE SIZE – CHOOSE PRODUCT STYLE ================= */

/* Card size thoda compact */
#productSearchResults > * {
  width: 120px !important;
  min-width: 120px !important;
  padding: 6px !important;
}

/* 🔥 SMALL & CLEAN IMAGE (like choose product) */
#productSearchResults img {
  width: 100% !important;
  height: 65px !important;      /* ⬅️ choti image */
  object-fit: contain !important;
  border-radius: 6px !important;
  border: 1px solid #ddd !important;
  margin-bottom: 6px !important;
  background: #f9f9f9;
}

/* Text thoda compact */
#productSearchResults > * > div {
  font-size: 12px !important;
  line-height: 1.2 !important;
}









/* 🌫️ Blur overlay */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.onboarding-overlay.hidden {
  display: none;
}

/* 🎯 Highlight active area */
.onboarding-active {
  position: relative;
  z-index: 10000;
  box-shadow: 0 0 0 4px #6a994e, 0 0 25px rgba(106,153,78,0.7);
  border-radius: 12px;
}

/* 💬 Tooltip box */
.onboarding-tooltip {
  position: absolute;
  background: #fff;
  color: #333;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: float 1.5s infinite ease-in-out;
}

/* ➡️ Arrow */
.onboarding-tooltip .arrow {
  width: 14px;
  height: 14px;
  background: white;
  position: absolute;
  transform: rotate(45deg);
}

/* 🔁 Animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
#tourOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(4px);
  z-index:9998;
}

#tourBox{
  position:fixed;
  background:#fff;
  padding:14px 18px;
  border-radius:12px;
  font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
  z-index:9999;
  animation:float 1.4s ease-in-out infinite;
}

#tourArrow{
  width:14px;
  height:14px;
  background:#fff;
  position:absolute;
  transform:rotate(45deg);
  top:-7px;
  left:20px;
}

@keyframes float{
  0%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
  100%{transform:translateY(0)}
}

.tour-highlight{
  position:relative;
  z-index:10000;
  box-shadow:0 0 0 4px #6a994e,0 0 30px rgba(106,153,78,0.9);
  border-radius:12px;
}





/* ===== FULL PAGE LOADER ===== */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#pageLoader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  animation: fadeIn 1s ease;
}

/* Logo */
.loader-logo {
  width: 120px;          /* thoda chota = clean look */
  display: block;
  margin: 0 auto 6px;   /* 👈 yahin se space kam hua */
  animation: floatLogo 2.5s ease-in-out infinite;
}

/* AI text */
.ai-text {
  margin-top: 0;        /* 👈 extra gap remove */
  line-height: 1.2;     /* 👈 tight spacing */
  font-size: 15px;
}
.loader-logo {
  margin-bottom: 2px;
}




/* AI text */
.ai-text {
  font-size: 16px;
  font-weight: 600;
  color: #285b09;
  letter-spacing: 0.4px;
}

.ai-text span {
  font-weight: 800;
  color: #337007;
}

/* AI dots animation */
.ai-dots {
  margin-top: 15px;
}

.ai-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #448615;
  border-radius: 50%;
  margin: 0 3px;
  animation: dots 1.4s infinite ease-in-out;
}

.ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Animations */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes dots {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}



/* 📦 MOBILE PRODUCT FAB */
.mobile-product-fab {
  display: none;
}

/* 📱 Mobile only */
@media (max-width: 768px) {
  .mobile-product-fab {
    display: flex;
    position: fixed;
    bottom: 180px; /* ✅ generate + input dono se upar */
    right: 20px;

    width: 56px;
    height: 56px;
    border-radius: 50%;

    background: linear-gradient(135deg, #6a994e, #5d8845);
    color: #fff;
    border: none;

    align-items: center;
    justify-content: center;

    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 10050; /* ✅ sabse upar */

    cursor: pointer;
    pointer-events: auto;
  }

  .mobile-product-fab:active {
    transform: scale(0.9);
  }
}
@media (max-width: 768px) {
  .designer-panel.open ~ .mobile-product-fab {
    transform: rotate(180deg);
  }
}


/* =====================================================
   🔒 CHAT HISTORY VISIBILITY – HOVER ONLY (FINAL FIX)
   ===================================================== */

/* Default: history kabhi bhi visible nahi */
.chat-history-container {
  display: none !important;
}

/* ✅ Sirf sidebar hover par hi dikhe */
.smart-sidebar:hover .chat-history-container {
  display: flex !important;
}

/* ❌ Sidebar collapse hone par force hide */
.smart-sidebar:not(:hover) .chat-history-container {
  display: none !important;
}
/* Default: chats hidden */
.chat-history-container {
  display: none;
}

/* Sidebar OPEN + hover = show chats */
.smart-sidebar.open:hover .chat-history-container {
  display: block;
}

/* Sidebar CLOSED = force hide */
.smart-sidebar:not(.open) .chat-history-container {
  display: none;
}
/* =====================================================
   CHAT HISTORY – FINAL GUARANTEED FIX
   ===================================================== */

/* Default: history bilkul hide */
#chatHistoryList {
  display: none;
}

/* Toggle OPEN → show */
#chatHistoryList.open {
  display: block;
}

/* Toggle CLOSED → force hide (override everything) */
#chatHistoryList:not(.open) {
  display: none !important;
}



.action-btn-row{
  display: flex;
  gap: 12px;
}

.action-btn-row button{
  flex: 1;
}

.add-to-cart-btn{
  background:#ff9800;
  color:#fff;
  border:none;
  border-radius:8px;
  font-size:1.1em;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.add-to-cart-btn:hover{
  background:#e68900;
}

/* 🔥 REMOVE EXTRA TOP SPACE ABOVE HEADER */
.chat-panel {
    padding-top: 0 !important;
}

.chat-header {
    margin-top: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: unset !important;
}

/* Header text tight */
.chat-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}

/* ✅ FIX PRODUCT NAME ISSUE (FINAL) */
.product-selector .product-item {
    height: 125px !important;        /* thodi extra height */
    justify-content: flex-start !important;
}

/* image ko limit karo */
.product-selector .product-item img {
    height: 80px !important;         /* image ko cap */
    object-fit: contain;
}

/* product name clearly neeche aaye */
.product-selector .product-item span {
    margin-top: 4px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 🔥 REMOVE EXTRA SPACE BELOW PRODUCT NAME */
.product-selector .product-item {
    justify-content: flex-start !important; /* ❌ center hatao */
}

/* 🔥 Product name tight */
.product-selector .product-item span {
    margin: 0 !important;          /* ❌ default gap */
    padding: 2px 6px 0 !important; /* neeche ka space remove */
    line-height: 1.1 !important;   /* compact text */
    display: block;
}
/* 🔴 REMOVE TOP EMPTY SPACE ABOVE "Mockup Designer" */

/* Designer panel ka extra top padding hatao */
.designer-panel {
    padding-top: 10px !important;   /* pehle zyada tha */
}

/* Heading ka default top margin hatao */
.designer-panel h2,
.designer-panel .section-title {
    margin-top: 0 !important;
}

/* Agar koi extra spacer / hr / empty div ho */
.designer-panel > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* 🔴 REMOVE SPACE ABOVE "Generate Final Mockup" BUTTON */

/* Disclaimer text ke niche ka gap hatao */
.disclaimer-note {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Brand name input ke baad ka extra gap */
.logo-preview-container,
.section input,
.section {
    margin-bottom: 6px !important;
}

/* Generate button ke upar ka space control */
.generate-btn {
    margin-top: 8px !important;   /* pehle zyada tha */
}

/* Agar koi empty spacer div aa raha ho */
.section > br,
.section > .spacer {
    display: none !important;
}
/* ========================================
   EXPANDABLE DESCRIPTION SECTION
   ======================================== */

.description-expander {
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
}

/* Toggle Button */
.description-toggle {
    width: 100%;
    background: linear-gradient(135deg, #f8fff5, #e8f5e3);
    border: none;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #2e5c2e;
    transition: all 0.3s ease;
    border-bottom: 1px solid #d8e6d2;
}

.description-toggle:hover {
    background: linear-gradient(135deg, #e8f5e3, #d8ecd0);
}

.description-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.description-toggle.active i {
    transform: rotate(180deg);
}

/* Content Area (Hidden by default) */
.description-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: #fafffe;
}

.description-content.expanded {
    max-height: 2000px; /* Large enough to show all content */
}

.description-inner {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.description-inner h3 {
    text-align: center;
    font-size: 26px;
    color: #2e5c2e;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.description-inner > p {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.desc-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e6f4e0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.desc-card:hover {
    transform: translateY(-5px);
    border-color: #6a994e;
    box-shadow: 0 6px 20px rgba(106, 153, 78, 0.15);
}

.desc-card i {
    font-size: 36px;
    color: #6a994e;
    margin-bottom: 15px;
}

.desc-card h4 {
    font-size: 16px;
    color: #2e5c2e;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.desc-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Features List */
.description-features {
    background: #f8fff5;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #d8e6d2;
    margin: 30px 0;
}

.description-features h4 {
    font-size: 18px;
    color: #2e5c2e;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.description-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.description-features li {
    font-size: 14px;
    color: #555;
    padding: 8px 0;
}

/* CTA Section */
.description-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.description-cta p {
    font-size: 16px;
    color: #2e5c2e;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6a994e, #5d8845);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 153, 78, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #5d8845, #4a7738);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 153, 78, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .description-toggle {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .description-inner {
        padding: 25px 15px;
    }
    
    .description-inner h3 {
        font-size: 20px;
    }
    
    .description-inner > p {
        font-size: 14px;
    }
    
    .description-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .desc-card {
        padding: 15px;
    }
    
    .desc-card i {
        font-size: 28px;
    }
    
    .desc-card h4 {
        font-size: 14px;
    }
    
    .desc-card p {
        font-size: 12px;
    }
    
    .description-features ul {
        grid-template-columns: 1fr;
    }
   
    
/* ===============================
   FIX: Country Dropdown Behind Modal (Mobile Only)
   =============================== */
@media (max-width: 768px) {

    .download-modal {
        z-index: 10000 !important;
    }

    .download-modal-content {
        position: relative;
        z-index: 10001 !important;
        overflow: visible !important; /* IMPORTANT */
    }

    .iti {
        position: relative;
        z-index: 10002 !important;
    }

    .iti__country-list {
        position: absolute !important;
        z-index: 10003 !important;
    }

}
