/*==================== VARIABLES ====================*/
:root {
	/* Primary Colors and Typography */
	--primary-color: black;
	--secondary-color: #0f1318;
	--background-color: #f8f9fa;
	--text-color: #333;
	--heading-color: #222;
	--border-radius: 8px;
	--transition: all 0.3s ease-in-out;
	--font-family: "Soehne", system-ui, -apple-system, Helvetica Neue, Arial, sans-serif;
  
	/* Additional Variables */
	--header-height: 3.5rem;
	--white-color: hsl(0, 0%, 0%);
	--black-color: hsl(0, 0%, 100%);
	--menu-font: "Soehne", system-ui, -apple-system, Helvetica Neue, Arial, sans-serif;
	--h1-font-size: 1.5rem;
	--normal-font-size: .938rem;
	--font-regular: 400;
	--font-medium: 500;
	--z-tooltip: 10;
	--z-fixed: 100;
  }

#hero-chat {
    height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding: 0 20px;
	position: relative; /* Contains absolute children */
	width: 100%;
	overflow: hidden; /* Prevents video overflow */
    background: linear-gradient(270deg, #000, #222, #000);
  background-size: 600% 600%;
  animation: movingGradient 10s ease infinite;
}
@media screen and (max-width: 880px) {
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    background: transparent !important; /* Removes gray background */
    overflow: hidden;
    z-index: 1;
}
}
@keyframes movingGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

.btnhero {
	display: inline-block;
	background: white;
	color: black;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 500;
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: var(--transition);
	box-shadow: 0 4px 10px rgba(205, 205, 205, 0.3);
  }
  /* Chat Section */
  .chat-container {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .chat-header {
    padding: 10px 16px;
    background: #f0f2f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .chat-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--heading-color);
  }
  
  .chat-box {
    padding: 20px;
    min-height: 400px; /* Taller chat area */
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* Ensure the message starts with opacity 0 (invisible) and transitions to 1 (visible) */
.message {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

/* Define the fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* Optional: Slight upward movement for effect */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Style for user and AI messages specifically */
.user-message, .ai-message {
  margin: 5px 0;
  padding: 8px;
  border-radius: 5px;
}

/* Optional: Differentiate user and AI messages with colors */
.user-message {
  background-color: #272727; /* Light blue for user messages */
  align-self: flex-end;
  color: white;
}

.ai-message {
  background-color: #eef0eb; /* Light green for AI messages */
  align-self: flex-start;
}
  
  .typing-indicator {
    padding: 10px;
    display: flex;
    gap: 6px;
  }
  
  .typing-indicator span {
    width: 5px;
    height: 5px;
    background: #0d0d0e;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
  }
  
  .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes bounce {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-6px);
    }
  }
  
  .chat-input-container {
    padding: 10px;
    background: #fff;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .chat-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  
  /* Base button styles */
  #deepsearch-btn,
  #think-btn,
  #attach-btn,
  #chat-send {
    border: none;
    padding: 8px 12px;
    color: #0d0d0e;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }
  
  /* Specific styles for DeepSearch and Think */
  #deepsearch-btn,
  #think-btn {
    border-radius: 6px; /* Slightly rounded rectangle */
    padding: 8px 14px;
    gap: 6px; /* Space between icon and text */
    font-weight: 500;
  }
  
  #deepsearch-btn:hover,
  #think-btn:hover {
    background: rgba(144, 173, 204, 0.1);
    color: #404041;
  }
  
  /* Specific styles for Attach and Send (icon-only) */
  #attach-btn,
  #chat-send {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  
  #attach-btn:hover,
  #chat-send:hover {
    background: rgba(144, 173, 204, 0.1);
    color: #404041;
  }
  
  /* Active and disabled states */
  #deepsearch-btn:active,
  #think-btn:active,
  #attach-btn:active,
  #chat-send:active {
    transform: scale(0.95);
  }
  
  #chat-send:disabled {
    color: #ccc;
    cursor: not-allowed;
  }
  
  /* Optional: Highlight active button */
  #deepsearch-btn.active,
  #think-btn.active,
  #attach-btn.active {
    color: #fff;
    background: #74a7df;
  }
  
  #chat-input {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 16px;
  }
  
  #chat-send {
    background: transparent; /* No solid background */
    border: none;
    padding: 10px;
    color: #0d0d0e; /* Matches your theme */
    font-size: 1.2rem; /* Slightly larger icon */
    cursor: pointer;
    transition: var(--transition); /* Smooth hover effect */
    border-radius: 50%; /* Circular shape */
    width: 40px; /* Fixed size */
    height: 40px; /* Fixed size */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #chat-send:hover {
    color: #619dda; /* Darker shade for hover */
    background: rgba(144, 173, 204, 0.1); /* Subtle background on hover */
  }
  
  #chat-send:active {
    transform: scale(0.95); /* Slight press effect */
  }

/* Session Toggle Button */
.session-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f0f2f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  width: 150px; /* Adjusted width */
}

.session-toggle-btn:hover {
  background: #e8ecef;
}

.session-toggle-btn i:first-child {
  margin-right: 6px; /* Space between icon and text */
}

.session-toggle-btn i:last-child {
  font-size: 0.9rem;
  color: #666;
}

/* Session Sidebar */
.session-sidebar {
  position: fixed;
  top: calc(var(--header-height) + 10px); /* Adjust based on header height */
  left: -300px; /* Hidden by default */
  width: 300px;
  height: calc(100vh - var(--header-height) - 20px);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 1000;
  overflow-y: auto;
  padding: 10px;
}

.session-sidebar.active {
  left: 10px; /* Slide in when active */
}

.session-list {
  padding: 0;
}

.session-group {
  padding: 0 10px;
}

.session-group h4 {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0 5px;
  font-weight: 500;
  text-transform: uppercase;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

.session-item:hover {
  background: #f0f2f5;
}

.session-item.active {
  background: #e6f2ff;
  font-weight: 500;
}

.session-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-item .timestamp {
  font-size: 0.8rem;
  color: #888;
  margin-left: 10px;
}

.new-temp-chat-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 10px auto;
  padding: 8px;
  background: #f0f2f5;
  color: var(--text-color);
  border: none;
  border-radius: 6px;
  font-size: var(--normal-font-size);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.new-temp-chat-btn:hover {
  background: #e8ecef;
}

/* Scrollbar styling for consistency across browsers */
.session-sidebar::-webkit-scrollbar {
  width: 6px;
}

.session-sidebar::-webkit-scrollbar-track {
  background: #f0f2f5;
}

.session-sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.session-sidebar::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Remove the margin adjustment for the chat container */
.chat-container {
  margin-left: 0; /* Ensure no shift */
}

.chat-session-controls .btn {
  padding: 8px;
  font-size: 0.9rem;
}