@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@layer utilities {
  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
}

@layer components {

  /* Chat message animations */
  @keyframes slide-down {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-slide-down {
    animation: slide-down 0.3s ease-out;
  }

  /* Label button pulse animation */
  @keyframes pulse-scale {

    0%,
    100% {
      opacity: 0.7;
      transform: scale(0.9);
    }

    50% {
      opacity: 1;
      transform: scale(1.0);
    }
  }

  /* Message bubbles max width responsive */
  .max-w-2xl {
    max-width: min(42rem, 66.67%);
  }

  /* Chat container styling */
  #chat-container {
    scroll-behavior: smooth;
  }

  /* Better textarea resizing */
  #message-input {
    resize: none;
    transition: height 0.2s ease;
    overflow-y: hidden;
  }

  /* Improved focus states */
  .focus\:ring-2:focus {
    ring-width: 2px;
  }

  /* Typing indicator animation */
  @keyframes bounce {

    0%,
    80%,
    100% {
      transform: scale(0);
    }

    40% {
      transform: scale(1);
    }
  }

  .animate-bounce {
    animation: bounce 1.4s infinite;
  }

  /* Backdrop blur support */
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .max-w-2xl {
    max-width: 85%;
  }
}

@media (max-width: 640px) {
  .max-w-2xl {
    max-width: 90%;
  }
}
/*!
 * Virtual Select v1.0.46
 * https://sa-si-dev.github.io/virtual-select
 * Licensed under MIT (https://github.com/sa-si-dev/virtual-select/blob/master/LICENSE)
 */
@keyframes vscomp-animation-spin{to{transform:rotateZ(360deg)}}.vscomp-popup-active{overflow:hidden !important}.vscomp-ele{display:inline-block;max-width:250px;width:100%}.vscomp-wrapper{color:#333;display:inline-flex;flex-wrap:wrap;font-family:sans-serif;font-size:14px;position:relative;text-align:left;width:100%}.vscomp-wrapper *,.vscomp-wrapper *::before,.vscomp-wrapper *::after{box-sizing:border-box}.vscomp-wrapper:focus{outline:none}.vscomp-dropbox-wrapper{left:0;position:absolute;top:0}.vscomp-toggle-button{align-items:center;background-color:#fff;border:1px solid #ddd;cursor:pointer;display:flex;padding:7px 30px 7px 10px;position:relative;width:100%}.vscomp-value{height:20px;line-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vscomp-arrow{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:30px}.vscomp-arrow::after{transform:rotate(45deg);border:1px solid rgba(0,0,0,0);border-bottom-color:#111;border-right-color:#111;content:"";height:8px;margin-top:-6px;width:8px}.vscomp-clear-icon{height:12px;position:relative;width:12px}.vscomp-clear-icon::before,.vscomp-clear-icon::after{background-color:#999;content:"";height:12px;left:5px;position:absolute;top:0;width:2px}.vscomp-clear-icon::before{transform:rotate(45deg)}.vscomp-clear-icon::after{transform:rotate(-45deg)}.vscomp-clear-icon:hover::before,.vscomp-clear-icon:hover::after{background:#333}.vscomp-clear-button{align-items:center;border-radius:50%;display:none;height:24px;justify-content:center;margin-top:-12px;position:absolute;right:30px;top:50%;width:24px}.vscomp-clear-button:hover{background:#ccc}.vscomp-clear-button:hover .vscomp-clear-icon::before,.vscomp-clear-button:hover .vscomp-clear-icon::after{background-color:#333}.vscomp-dropbox-close-button{align-items:center;background-color:#fff;border-radius:50%;bottom:-48px;cursor:pointer;display:none;height:40px;justify-content:center;left:50%;margin-left:-20px;position:absolute;width:40px}.vscomp-value-tag.more-value-count{white-space:nowrap}.vscomp-dropbox-container{width:100%;z-index:2}.vscomp-dropbox{background-color:#fff;width:100%}.vscomp-options-container{max-height:210px;overflow:auto;position:relative}.vscomp-options-bottom-freezer{bottom:0;height:2px;left:0;position:absolute;right:0}.vscomp-option{align-items:center;cursor:pointer;display:flex;flex-wrap:wrap;height:40px;padding:0 15px;position:relative}.vscomp-option.selected{background-color:#eee}.vscomp-option.focused{background-color:#ccc}.vscomp-option.disabled{cursor:default;opacity:.5}.vscomp-option.group-title .vscomp-option-text{cursor:default;opacity:.6}.vscomp-option.group-title.selected{background-color:rgba(0,0,0,0)}.vscomp-option.group-option{padding-left:30px}.vscomp-new-option-icon{height:30px;position:absolute;right:0;top:0;width:30px}.vscomp-new-option-icon::before{border:15px solid #512da8;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);content:"";position:absolute;right:0;top:0}.vscomp-new-option-icon::after{align-items:center;color:#fff;content:"+";display:flex;font-size:18px;height:15px;justify-content:center;position:absolute;right:1px;top:0;width:15px}.vscomp-option-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.vscomp-option-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:13px;line-height:15px;width:100%}.vscomp-search-container{align-items:center;border-bottom:1px solid #ddd;display:flex;height:40px;padding:0 5px 0 15px;position:relative}.vscomp-search-label,.vscomp-live-region,.vscomp-dropbox-container-top,.vscomp-dropbox-container-bottom{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.vscomp-search-input{background-color:rgba(0,0,0,0);border:0;color:inherit;font-size:15px;height:38px;padding:10px 0;width:calc(100% - 30px)}.vscomp-search-input:focus{outline:none}.vscomp-search-clear{align-items:center;color:#999;cursor:pointer;display:flex;font-size:25px;height:30px;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;width:30px}.vscomp-search-clear:hover{color:inherit}.vscomp-no-options,.vscomp-no-search-results{align-items:center;display:none;justify-content:center;padding:20px 10px}.vscomp-options-loader{display:none;padding:20px 0;text-align:center}.vscomp-options-loader::before{animation:vscomp-animation-spin .8s infinite linear;background-color:#fff;border-radius:50%;box-shadow:-4px -5px 3px -3px rgba(0,0,0,.3);content:"";display:inline-block;height:40px;opacity:.7;width:40px}.vscomp-ele[disabled]{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vscomp-ele[disabled] .vscomp-wrapper{opacity:.7;pointer-events:none}.vscomp-wrapper .checkbox-icon{display:inline-flex;height:15px;margin-right:10px;position:relative;width:15px}.vscomp-wrapper .checkbox-icon::after{transition-duration:.2s;border:2px solid #888;content:"";display:inline-block;height:100%;width:100%}.vscomp-wrapper .checkbox-icon.checked::after{transform:rotate(45deg) translate(1px, -4px);border-color:#512da8;border-left-color:rgba(0,0,0,0);border-top-color:rgba(0,0,0,0);width:50%}.vscomp-wrapper.show-as-popup .vscomp-dropbox-container{align-items:center;background-color:rgba(0,0,0,.5);display:flex;height:100vh;justify-content:center;left:0;opacity:1;overflow:auto;padding:0 10px;position:fixed;top:0;width:100vw}.vscomp-wrapper.show-as-popup .vscomp-dropbox{margin-top:-24px;max-height:calc(80% - 48px);max-width:500px;position:relative;width:80%}.vscomp-wrapper.show-as-popup .vscomp-dropbox-close-button{display:flex}.vscomp-wrapper.popup-position-left .vscomp-dropbox-container{justify-content:flex-start}.vscomp-wrapper.popup-position-right .vscomp-dropbox-container{justify-content:flex-end}.vscomp-wrapper.has-select-all .vscomp-toggle-all-button{align-items:center;cursor:pointer;display:flex}.vscomp-wrapper.has-select-all .vscomp-search-input,.vscomp-wrapper.has-select-all .vscomp-toggle-all-label{width:calc(100% - 55px)}.vscomp-wrapper.has-select-all .vscomp-toggle-all-label{display:none}.vscomp-wrapper:not(.has-search-input) .vscomp-toggle-all-button{width:100%}.vscomp-wrapper:not(.has-search-input) .vscomp-toggle-all-label{display:inline-block}.vscomp-wrapper.multiple .vscomp-option .vscomp-option-text{width:calc(100% - 25px)}.vscomp-wrapper.multiple .vscomp-option .vscomp-option-description{padding-left:25px}.vscomp-wrapper.multiple .vscomp-option.selected .checkbox-icon::after{transform:rotate(45deg) translate(1px, -4px);border-color:#512da8;border-left-color:rgba(0,0,0,0);border-top-color:rgba(0,0,0,0);width:50%}.vscomp-wrapper.focused .vscomp-toggle-button,.vscomp-wrapper:focus .vscomp-toggle-button{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2)}.vscomp-wrapper.closed .vscomp-dropbox-container,.vscomp-wrapper.closed.vscomp-dropbox-wrapper{display:none}.vscomp-wrapper:not(.has-value) .vscomp-value{opacity:.5}.vscomp-wrapper.has-clear-button.has-value .vscomp-clear-button{display:flex}.vscomp-wrapper.has-clear-button .vscomp-toggle-button{padding-right:54px}.vscomp-wrapper.has-no-options .vscomp-options-container,.vscomp-wrapper.has-no-search-results .vscomp-options-container{display:none}.vscomp-wrapper.has-no-options .vscomp-no-options{display:flex}.vscomp-wrapper.has-no-search-results .vscomp-no-search-results{display:flex}.vscomp-wrapper.has-search-value .vscomp-search-clear{visibility:visible}.vscomp-wrapper.has-no-options .vscomp-toggle-all-button{opacity:.5;pointer-events:none}.vscomp-wrapper.keep-always-open .vscomp-toggle-button{padding-right:24px}.vscomp-wrapper.keep-always-open .vscomp-clear-button{right:5px}.vscomp-wrapper.keep-always-open .vscomp-arrow{display:none}.vscomp-wrapper.keep-always-open .vscomp-dropbox-container{position:relative;z-index:1}.vscomp-wrapper.keep-always-open .vscomp-dropbox{transition-duration:0s;border:1px solid #ddd;box-shadow:none}.vscomp-wrapper.keep-always-open.focused,.vscomp-wrapper.keep-always-open:focus,.vscomp-wrapper.keep-always-open:hover{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2)}.vscomp-wrapper.server-searching .vscomp-options-list{display:none}.vscomp-wrapper.server-searching .vscomp-options-loader{display:block}.vscomp-wrapper.has-error .vscomp-toggle-button{border-color:#b00020}.vscomp-wrapper.show-value-as-tags .vscomp-toggle-button{padding:4px 22px 0 10px}.vscomp-wrapper.show-value-as-tags .vscomp-value{display:flex;flex-wrap:wrap;height:auto;min-height:28px;overflow:auto;text-overflow:unset;white-space:normal}.vscomp-wrapper.show-value-as-tags .vscomp-value-tag{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-items:center;border:1px solid #ddd;border-radius:20px;display:inline-flex;font-size:12px;line-height:16px;margin:0 4px 4px 0;max-width:100%;padding:2px 3px 2px 8px}.vscomp-wrapper.show-value-as-tags .vscomp-value-tag.more-value-count{padding-right:8px}.vscomp-wrapper.show-value-as-tags .vscomp-value-tag-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 20px)}.vscomp-wrapper.show-value-as-tags .vscomp-value-tag-clear-button{align-items:center;display:flex;height:20px;justify-content:center;width:20px}.vscomp-wrapper.show-value-as-tags .vscomp-value-tag-clear-button .vscomp-clear-icon{transform:scale(0.8)}.vscomp-wrapper.show-value-as-tags .vscomp-arrow{height:34px}.vscomp-wrapper.show-value-as-tags .vscomp-clear-button{margin-top:0;top:5px}.vscomp-wrapper.show-value-as-tags.has-value .vscomp-arrow{display:none}.vscomp-wrapper.show-value-as-tags.has-value .vscomp-clear-button{right:2px}.vscomp-wrapper.show-value-as-tags:not(.has-value) .vscomp-toggle-button{padding-bottom:2px}.vscomp-wrapper.show-value-as-tags:not(.has-value) .vscomp-value{align-items:center;padding-bottom:3px}.vscomp-wrapper.text-direction-rtl{direction:rtl}.vscomp-wrapper.text-direction-rtl .vscomp-toggle-button{padding:7px 10px 7px 30px}.vscomp-wrapper.text-direction-rtl .vscomp-arrow{left:0;right:auto}.vscomp-wrapper.text-direction-rtl .vscomp-clear-button{left:30px;right:auto !important}.vscomp-wrapper.text-direction-rtl .checkbox-icon{margin-left:10px;margin-right:0}.vscomp-wrapper.text-direction-rtl .checkbox-icon.checked::after{transform:rotate(45deg) translate(-4px, 1px)}.vscomp-wrapper.text-direction-rtl .vscomp-search-container{padding:0 15px 0 5px}.vscomp-wrapper.text-direction-rtl .vscomp-toggle-all-label{text-align:right}.vscomp-wrapper.text-direction-rtl .vscomp-option{text-align:right}.vscomp-wrapper.text-direction-rtl .vscomp-option.group-option{padding-right:30px}.vscomp-wrapper.text-direction-rtl .vscomp-new-option-icon{left:0;right:auto}.vscomp-wrapper.text-direction-rtl .vscomp-new-option-icon::before{border-left-color:#512da8;border-right-color:rgba(0,0,0,0)}.vscomp-wrapper.text-direction-rtl .vscomp-new-option-icon::after{left:1px;right:auto}.vscomp-wrapper.text-direction-rtl.multiple .vscomp-option.selected .checkbox-icon::after{transform:rotate(45deg) translate(-4px, 1px)}.vscomp-wrapper.text-direction-rtl.has-clear-button .vscomp-toggle-button{padding-left:54px}.vscomp-wrapper.text-direction-rtl.keep-always-open .vscomp-toggle-button{padding-left:24px}.vscomp-wrapper.text-direction-rtl.keep-always-open .vscomp-clear-button{left:5px}.vscomp-wrapper.text-direction-rtl.show-value-as-tags .vscomp-toggle-button{padding:4px 10px 0 22px}.vscomp-wrapper.text-direction-rtl.show-value-as-tags .vscomp-value-tag{margin:0 0 4px 4px;padding:2px 8px 2px 3px}.vscomp-wrapper.text-direction-rtl.show-value-as-tags .vscomp-value-tag.more-value-count{padding-left:8px}.vscomp-wrapper.text-direction-rtl.show-value-as-tags.has-value .vscomp-clear-button{left:2px}
/*!
 * Popover v1.0.13
 * https://sa-si-dev.github.io/popover
 * Licensed under MIT (https://github.com/sa-si-dev/popover/blob/master/LICENSE)
 */
.pop-comp-wrapper{display:none;position:absolute;top:0;left:0;opacity:0;color:#000;background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);text-align:left;flex-wrap:wrap;z-index:1}.pop-comp-arrow{position:absolute;z-index:1;width:16px;height:16px;overflow:hidden;pointer-events:none}.pop-comp-arrow::before{content:"";position:absolute;top:8px;left:8px;width:16px;height:16px;background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.pop-comp-content{position:relative;z-index:2}.pop-comp-wrapper.position-bottom>.pop-comp-arrow{margin-left:-8px;left:0;top:-15px}.pop-comp-wrapper.position-bottom>.pop-comp-arrow::before{box-shadow:0px 0px 2px 0 rgba(0,0,0,.14)}.pop-comp-wrapper.position-top>.pop-comp-arrow{margin-left:-8px;left:0;bottom:-15px}.pop-comp-wrapper.position-right>.pop-comp-arrow{margin-top:-8px;top:0;left:-15px}.pop-comp-wrapper.position-left>.pop-comp-arrow{margin-top:-8px;top:0;right:-15px}.pop-comp-disable-events{pointer-events:none}
[data-voice-target="microphone"] {
  transition: all 0.2s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

[data-voice-target="microphone"]:hover {
  transform: scale(1.05);
}

[data-voice-target="microphone"]:active {
  transform: scale(0.95);
}

[data-voice-target="microphone"].recording {
  background: linear-gradient(45deg, #ef4444, #dc2626) !important;
  color: white;
  animation: recording-pulse 1s infinite;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

[data-voice-target="microphone"].processing {
  background: linear-gradient(45deg, #f59e0b, #d97706) !important;
  color: white;
  animation: processing-pulse 1s infinite;
}

@keyframes recording-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  }
}

@keyframes processing-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px #f59e0b;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px #d97706;
  }
}

@keyframes processing-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

[data-voice-target="recordingIndicator"] {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.audio-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

.audio-play-button:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.audio-play-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.audio-play-button.playing {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #3b82f6;
}

.dark .audio-play-button {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark .audio-play-button:hover {
  background: #4b5563;
}

.dark .audio-play-button.playing {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #60a5fa;
}

.voice-error {
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  [data-voice-target="microphone"] {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .audio-play-button {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.animate-slide-down {
  animation: slide-down 0.4s ease;
  animation-fill-mode: forwards;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.markup-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.markup-content ul,
.markup-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markup-content h1,
.markup-content h2,
.markup-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}
.chat-get-started-initial {
  margin-bottom: 40vh;
}
/* Chat specific styles */
#chat-container {
  min-height: calc(100vh - 160px);
  /* Account for navbar and footer */
}

#messages {
  padding-bottom: 20px;
  /* Extra space at bottom */
}

/* Chat input improvements */
#chat-container .sticky {
  z-index: 10;
  /* Ensure chat input stays above content */
}
/* Setup Info Topbar Styles */
:root {
  --main-nav-height: 80px;
  --setup-info-height: 64px;
}

#setup-info-topbar {
  top: var(--main-nav-height);
  z-index: 15 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 64px;
  margin-bottom: 1rem;
  }
  
  /* Add shadow and spacing enhancement */
  #setup-info-topbar::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
}

/* Smooth transitions for main content spacing */
main {
  transition: margin-top 0.3s ease-in-out;
}

/* Dynamic margin calculation */
.main-with-setup-topbar {
  margin-top: calc(var(--main-nav-height) + var(--setup-info-height) + 1rem) !important;
}

.main-without-setup-topbar {
  margin-top: calc(var(--main-nav-height) + 1rem) !important;
}

/* Enhanced hover effects for setup info badges */
#setup-info-topbar .rounded-full {
  transition: all 0.2s ease-in-out;
}

#setup-info-topbar .rounded-full:hover {
  transform: scale(1.05);
}

/* Hide scrollbar for better UX */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Sidebar styles */
.sidebar-open {
  margin-left: 320px;
  transition: margin-left 0.3s ease-in-out;
}

/* Topbar adjustments when sidebar is open */
nav.sidebar-shifted,
#setup-info-topbar.sidebar-shifted {
  left: 320px !important;
  width: calc(100% - 320px) !important;
  transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Footer adjustments when sidebar is open */
footer.sidebar-shifted {
  left: 320px !important;
  width: calc(100% - 320px) !important;
  transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}
/* Sidebar responsive design */
@media (max-width: 640px) {
  [data-sidebar-target="sidebar"] {
    width: 85vw;
    max-width: 320px;
  }

  .sidebar-open {
    margin-left: 85vw;
  }

  nav.sidebar-shifted,
  #setup-info-topbar.sidebar-shifted {
    left: 85vw !important;
    width: calc(100% - 85vw) !important;
  }
footer.sidebar-shifted {
  left: 85vw !important;
  width: calc(100% - 85vw) !important;
}
}

/* Mobile specific adjustments */
.conversation {
  padding: 10px 12px;
  min-height: 44px;


  .conversation-title {
    font-size: 13px;
  }

  .title-container {
    padding: 12px 20px 6px 20px;
  }
}

/* Gemini-inspired conversation list styling */
.conversation-items-container {
  position: relative;
  margin: 0 8px 4px 8px;
}

.conversation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 2px 0;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background: transparent;
    color: #1f2937;
    text-decoration: none;
    position: relative;
    min-height: 48px;
  }
  
  .dark .conversation {
    color: #f9fafb;
  }
  
  .conversation:hover {
    background-color: #f3f4f6;
  }
  
  .dark .conversation:hover {
    background-color: #374151;
  }
  
  /* Active/Selected conversation styling */
  .conversation.active {
    background-color: #c8d7e4;
    color: #304A61;
  }
  
  .dark .conversation.active {
    background-color: #304A61;
    color: #c8d7e4;
  }
  
  .conversation.active:hover {
    background-color: #afc7dc;
  }
  
  .dark .conversation.active:hover {
    background-color: #384857;
  }
  
  .conversation-title {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
    direction: ltr;
  }
  
  .conversation-title-cover {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, #ffffff);
    pointer-events: none;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
  }
  
  .dark .conversation-title-cover {
    background: linear-gradient(to right, transparent, #111827);
  }
  
  .conversation:hover .conversation-title-cover {
    background: linear-gradient(to right, transparent, #f3f4f6);
  }
  
  .dark .conversation:hover .conversation-title-cover {
    background: linear-gradient(to right, transparent, #374151);
  }
  
  /* Active state title covers */
  .conversation.active .conversation-title-cover {
    background: linear-gradient(to right, transparent, #c8d7e4);
  }
  
  .dark .conversation.active .conversation-title-cover {
    background: linear-gradient(to right, transparent, #304A61);
  }
  
  .conversation.active:hover .conversation-title-cover {
    background: linear-gradient(to right, transparent, #afc7dc);
  }
  
  .dark .conversation.active:hover .conversation-title-cover {
    background: linear-gradient(to right, transparent, #384857);
  }
  
  /* Title styling */
  .title-container {
    padding: 16px 24px 8px 24px;
  }
  
  .title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin: 0;
}

.dark .title {
  color: #9ca3af;
}

/* Enhanced scrollbar styling for sidebar */
[data-sidebar-target="sidebar"] .overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

[data-sidebar-target="sidebar"] .overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

[data-sidebar-target="sidebar"] .overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

[data-sidebar-target="sidebar"] .overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.3);
    border-radius: 3px;
    border: none;
}

[data-sidebar-target="sidebar"] .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.5);
}

/* Ensure sidebar content is scrollable */
[data-sidebar-target="sidebar"] {
  display: flex;
  flex-direction: column;
}

[data-sidebar-target="sidebar"] .overflow-y-auto {
  flex: 1;
  overflow-y: auto !important;
}
/* Animation classes */
.conversation-list-reveal-animation {
  opacity: 0;
  transform: translateY(4px);
  animation: revealConversation 0.2s ease-out forwards;
}

@keyframes revealConversation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vscomp-ele {
  max-width: 100%;
  .vscomp-toggle-button {
    color: #2b2b2b;
    border-color: #989898;
    background: #f0f0f0;
    border-radius: 0.5rem;
  }
  .vscomp-value-tag {
    background: #304A61;
    color: white;
    border-radius: 0.5rem !important;
    .vscomp-clear-icon::before, .vscomp-clear-icon::after {
      background: white;
    }
  }
}
