 @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


 body {
     font-family: "Inter", sans-serif;
     background: #f8f9fa;
     margin: 0;
     height: 100%;
     overflow: auto;
 }

 /* ==== NAVBAR STRUCTURE ==== */
 .main-header {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     z-index: 3;
     padding: 10px 0;
     background-color: #F6E5FC;
 }

 .mt-header-fix {
     margin-top: 60px;
 }

 .custom-navbar {
     max-width: 1280px;
     padding-left: 8px;
     padding-right: 8px;
 }

 /* ==== GLASSMORPHIC LOOK ==== */
 .glassmorphic {
     background: rgba(255, 255, 255, 0.7);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border: 1px solid rgba(255, 255, 255, 0.3);
 }

 /* ==== BRAND NAME ==== */
 .dot-brand {
     color: #d63384;
 }

 /* ==== BUTTON: WHATSAPP SUPPORT ==== */
 .btn-whatsapp {
     background: linear-gradient(90deg, #5b5df5, #a148e6, #f65c35);
     color: #fff;
     font-weight: 600;
     border-radius: 999px;
     padding: 6px 16px;
     font-size: 13px;
     border: none;
     transition: opacity 0.2s ease, transform 0.2s ease;
 }

 .btn-whatsapp:hover {
     opacity: 0.9;
     transform: translateY(-1px);
     color: #fff;
 }

 /* ==== BUTTON: INSTALLATION ==== */
 .btn-installation {
     background-color: #e0ecff;
     color: #0b57d0;
     border-radius: 999px;
     padding: 6px 16px;
     font-size: 13px;
     font-weight: 600;
     transition: background-color 0.2s ease, color 0.2s ease;
     border: none;
 }

 .btn-installation:hover {
     background-color: #d0e2ff;
     color: #0842a0;
 }

 /* ==== PROFILE ICON ==== */
 .profile-icon {
     width: 32px;
     height: 32px;
     background-color: #6c757d;
     color: #fff;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: default;
     user-select: none;
 }

 .profile-initial {
     font-size: 14px;
     font-weight: 600;
     line-height: 1;
 }

 /* ==== RESPONSIVE ==== */
 @media (max-width: 575.98px) {
     .main-header {
         padding-top: 0.5rem;
         padding-bottom: 0.5rem;
     }

     .custom-navbar {
         flex-wrap: wrap;
     }

     .navbar .btn {
         font-size: 12px;
         padding: 4px 8px;
     }

     .navbar-brand {
         font-size: 16px;
     }

     .prompt-wrapper.fixed-bottom {
        position: sticky;
        bottom: 0;
        background: linear-gradient(
        to top,
        #f6e5fc 80%, 
        rgba(246, 229, 252, 0) 100%
        );
    }
 }


 /* Main Content */
 .main-content {
     margin-left: 0 !important;
 }

 /* Chat Center Container */
 .chat-center-wrapper {
     width: 100%;
     display: flex;
     justify-content: center;
     flex-grow: 1;
     overflow: hidden;
 }

 .chat-container {
     max-width: 768px;
     width: 100%;
     display: flex;
     flex-direction: column;
     position: relative;
     /* height: 100vh; */
 }

 /* Chat Layout Scrollable Area */
 .chat-layout {
     flex: 1;
     overflow-y: auto;
     padding: 80px 1rem 140px;
     scroll-behavior: smooth;
 }

 .chat-wrapper {
     width: 100%;
     max-width: 750px;
     margin: 0 auto;
 }

 .chat-row {
     display: flex;
     flex-direction: column;
     margin-bottom: 20px;
 }

 .chat-row.left {
     align-items: flex-start;
 }

 .chat-row.right {
     display: flex;
     flex-direction: row;
     justify-content: flex-end;
     position: relative;
 }

 .chat-edit-icon {
     margin-right: 10px;
     width: 48px;
     height: 48px;
     border-radius: 50%;
     display: flex;
     visibility: hidden;
     align-items: center;
     justify-content: center;
     transition: background-color 0.2s ease;
     cursor: pointer;
 }

 .chat-edit-icon:hover {
     background-color: #E2E7EB;
 }

 /* Show icon only on hover of the entire row */
 .chat-row.right:hover .chat-edit-icon {
     visibility: visible;
 }

 /* Hide edit icon when edit mode is active */
 .chat-row.right.editing:hover .chat-edit-icon {
     display: none;
 }

 .chat-bubble {
     padding: 12px 16px;
     border-radius: 20px;
     max-width: 75%;
     font-size: 15px;
     line-height: 1.5;
 }

 .chat-bubble.assistant {
     background-color: #f7f8fa;
     color: #1b1c1d;
     display: flex;
     align-items: flex-start;
     gap: 8px;
     padding: 12px 16px;
     font-size: 15px;
     line-height: 1.5;
     max-width: 75%;
     position: relative;
     border-radius: 4px 20px 20px 20px;
     /* top-left, top-right, bottom-right, bottom-left */
 }

 .chat-bubble.assistant .icon {
     font-size: 18px;
 }

 .chat-bubble.user {
     background-color: #e9f1fb;
     color: #202124;
     padding: 12px 16px;
     font-size: 15px;
     line-height: 1.5;
     max-width: 75%;
     position: relative;
     border-radius: 20px 4px 20px 20px;
     /* top-left, top-right, bottom-right, bottom-left */
     margin-right: 10px;
 }

 /* Edit Action */
 .chat-bubble.user.edit-mode {
     width: 100%;
     background-color: #fff;
     border: 2px solid #dadce0;
     border-radius: 999px;
     padding: 12px 16px;
     outline: none;
     transition: border-color 0.2s ease;
 }

 /* On Focus — bright blue border */
 .chat-bubble.user.edit-mode:focus {
     border-color: #0b57d0;
     border-width: 2px;
 }

 .chat-row.right.editing .chat-bubble.user.edit-mode {
     font-size: 15px;
     line-height: 1.6;
     color: #202124;
 }

 .edit-actions {
     position: absolute;
     right: 0;
     top: 100%;
     margin-top: 8px;
     display: flex;
     justify-content: flex-end;
     gap: 10px;
 }

 .edit-actions .btn {
     font-size: 13px;
     border-radius: 999px !important;
 }

 /* Ensure full width of editable chat bubble when in edit mode */
 .chat-row.right.editing .chat-bubble.user {
     width: 100%;
 }

 /* Optional: reduce padding inside bubble when editing */
 .chat-row.right.editing .chat-bubble.user.edit-mode {
     padding: 12px 16px;
 }

 /* Prompt Container */
 .prompt-wrapper.fixed-bottom {
     position: fixed;
     left: 0;
     right: 0;
     z-index: 1030;
     display: flex;
     justify-content: center;
     /* Background with smooth top gradient */
     background: linear-gradient(to top,
             #f8f9fa 80%,
             /* solid body color at bottom 80% */
             rgba(248, 249, 250, 0) 100%
             /* fades to transparent at top */
         );
     pointer-events: none;
     /* allow clicks only on child elements */
 }

 /* Make the prompt box clickable */
 .prompt-wrapper.fixed-bottom .prompt-box {
     pointer-events: auto;
 }

 .prompt-box {
     background: #fff;
     border: 2px solid transparent;
     border-radius: 24px;
     padding: 4px;  
     background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #5b5df5, #a148e6, #f65c35);
     background-origin: border-box;
     background-clip: padding-box, border-box;
 }


 /* Prompt Input Area */
 .prompt-input-wrapper {
     padding: 12px;
     flex: 1;
 }

 .prompt-input {
     min-height: 48px;
     max-height: 180px;
     overflow-y: auto;
     line-height: 1.6;
     outline: none;
     border: none;
     font-size: 14px;
     font-family: 'Inter', sans-serif;
     color: #334155;
     background-color: transparent;
     /* white-space: pre-wrap; */
     word-break: break-word;
 }

 /* Custom Placeholder using data attribute */
 .prompt-input.empty:before {
     content: attr(data-placeholder);
     color: #94a3b8;
     pointer-events: none;
     display: block;
 }

 .prompt-input:empty:before,
 .prompt-input:has(br:only-child):before,
 .prompt-input:not(:focus):empty:before {
     content: attr(data-placeholder);
     color: #94a3b8;
     pointer-events: none;
     display: block;
 }


 /* Scrollbar for large input */
 .prompt-input::-webkit-scrollbar {
     width: 6px;
 }

 .prompt-input::-webkit-scrollbar-thumb {
     background-color: rgba(0, 0, 0, 0.1);
     border-radius: 3px;
 }

 /* Optional: Send button hover */
 .send-btn:hover {
     background-color: rgba(0, 0, 0, 0.05);
     border-radius: 50%;
 }



 /* Misc */
 .menu-section-title {
     font-size: 15px;
     color: #727676;
     padding: 10px 20px 0;
     font-weight: 500;
 }

 .hover-bg:hover {
     background-color: #f1f3f4;
 }

 /* Responsive */
 @media (max-width: 767.98px) {
     .sidebar {
         transform: translateX(-100%);
         width: 260px;
     }

     .sidebar.mobile-active {
         transform: translateX(0);
     }

     .topbar {
         left: 0 !important;
     }

     .main-content {
         margin-left: 0 !important;
     }

     .chat-layout {
         padding: 1rem 1rem 130px;
     }

     .chat-bubble {
         max-width: 90%;
     }

     .prompt-wrapper {
         max-width: 100%;
         left: 0;
         transform: none;
     }
 }

 /* Common CSS */
 .btn {
     --bs-btn-border-color: none !important;
 }

 .btn-check:checked+.btn,
 .btn.active,
 .btn.show,
 .btn:first-child:active,
 :not(.btn-check)+.btn:active {
     border: none !important;
 }

 .mat-icon {
     width: 20px;
 }

 .hover-circle {
     width: 48px;
     height: 48px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background-color 0.2s ease;
     padding: 0;
     /* Ensure no padding overrides size */
 }

 .hover-circle:hover {
     background-color: #E2E7EB;
 }

 /* For WebKit browsers (Chrome, Edge, Safari) */
 *::-webkit-scrollbar {
     width: 6px;
     height: 6px;
 }

 *::-webkit-scrollbar-thumb {
     background-color: rgba(0, 0, 0, 0.2);
     /* subtle dark thumb */
     border-radius: 4px;
 }

 *::-webkit-scrollbar-track {
     background: transparent;
 }

 /* For Firefox */
 * {
     scrollbar-width: thin;
     scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
     /* thumb, track */
 }

 /* Chat Instructions */

 .instruction-title {
     font-size: 14px;
     font-weight: 400;
     color: #6c757d;
     text-align: center;
 }

 .quick-question-box {
     background-color: #fff;
     border: 1px solid #e6e6e6;
     border-radius: 10px;
     padding: 16px;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
     font-size: 14px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 100%;
 }

 .ask-link {
     background: none;
     border: none;
     color: #6c757d;
     font-size: 14px;
     font-weight: 500;
     cursor: pointer;
     padding: 4px 10px;
     border-radius: 6px;
     transition: background-color 0.2s ease, color 0.2s ease;
 }

 .ask-link:hover {
     background-color: #f1f3f4;
     /* light gray background on hover */
     color: #495057;
     /* slightly darker text */
     text-decoration: none;
 }