:where([class^="ri-"])::before { content: "\f3c2"; }
body {
font-family: 'Inter', sans-serif;
background-color: #0F172A;
color: #E2E8F0;
}
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.chat-messages {
height: calc(100% - 20px);
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #4B5563 #1F2937;
}


.chat-messages::-webkit-scrollbar {
width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
background: #1F2937;
}
.chat-messages::-webkit-scrollbar-thumb {
background-color: #4B5563;
border-radius: 20px;
}
.message-input {
border: none;
outline: none;
resize: none;
background-color: #1E293B;
color: #E2E8F0;
}
.message-input:focus {
outline: none;
}
.ai-typing-indicator span {
animation: blink 1.4s infinite both;
}
.ai-typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.ai-typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes blink {
0% { opacity: 0.2; }
20% { opacity: 1; }
100% { opacity: 0.2; }
}
.custom-switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
}
.custom-switch input {
opacity: 0;
width: 0;
height: 0;
}
.switch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #374151;
transition: .4s;
border-radius: 24px;
}
.switch-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .switch-slider {
background-color: #7C3AED;
}
input:checked + .switch-slider:before {
transform: translateX(20px);
}
.custom-checkbox {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 4px;
border: 2px solid #4B5563;
background-color: transparent;
display: inline-block;
position: relative;
margin-right: 8px;
cursor: pointer;
vertical-align: middle;
}
.custom-checkbox:checked {
background-color: #7C3AED;
border-color: #7C3AED;
}
.custom-checkbox:checked::after {
content: "";
position: absolute;
left: 5px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.code-block {
position: relative;
font-family: 'Fira Code', monospace;
background-color: #1a1a2e;
border-radius: 8px;
overflow: hidden;
}
.code-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
background-color: #252538;
color: #e2e8f0;
font-size: 14px;
}
.code-content {
padding: 16px;
overflow-x: auto;
color: #e2e8f0;
font-size: 14px;
line-height: 1.5;
}
.copy-btn {
background-color: transparent;
color: #a0aec0;
border: none;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
transition: color 0.2s;
}
.copy-btn:hover {
color: #e2e8f0;
}

/* Add to existing CSS */
.visualization-tabs {
  margin-top: 1rem;
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
}

.tab-content {
  padding: 1rem;
  background-color: #1a1a2e;
}

table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

th {
  background-color: #252538;
  color: #e2e8f0;
  font-weight: 500;
}

td, th {
  padding: 0.75rem 1rem;
  text-align: left;
}

tr:nth-child(even) {
  background-color: #1f2937;
}

#salesChart {
  max-height: 300px;
  min-height: 250px;
}





/* loader animation for session history */
/* Custom CSS for the animation */
@keyframes bounce {
  0%, 80%, 100% {
      transform: translateY(0); /* Start and end at original position */
  }
  40% {
      transform: translateY(-20px); /* Move up */
  }
}

.loader-bar {
  animation: bounce 1.2s infinite ease-in-out; /* Apply bounce animation */
}

/* Staggered animation delays for each bar */
.loader-bar:nth-child(1) {
  animation-delay: -0.32s; /* Delay for the first bar */
}

.loader-bar:nth-child(2) {
  animation-delay: -0.16s; /* Delay for the second bar */
}

.loader-bar:nth-child(3) {
  animation-delay: 0s; /* No delay for the third bar */
}

.hover-container {
    position: relative;
    display: inline; /* Changed from inline-block */
    cursor: pointer;
}

.hover-tag {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  position: absolute;
  bottom: 100%; /* Position directly above the text */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.hover-container:hover .hover-tag {
  visibility: visible;
  opacity: 1;
}

.image-grid-container {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); /* Ensure images fit in a responsive grid */
    gap: 20px; /* Add spacing between items */
    justify-content: center; /* Center the grid items */
    width: 100%; /* Ensure container spans full width */
    margin-bottom: 40px;
}

.image-set img {
    width: 100%; /* Ensure images fill their grid cell */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-carousel-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.image-carousel {
    display: flex;
    gap: 20px;
    align-items: center;
}

.image-carousel img {
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #1E293B;
    display: inline-block;
}

/* Optional: Hide scrollbar for aesthetics */
.image-carousel-container::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}
.image-carousel-container::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 8px;
}

