/* nput box */

.GrowChat-chat-component .glass-bg {
  background: rgba(75, 85, 99, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.GrowChat-chat-component .input-field {
  background: transparent;
  border: none;
  outline: none;
}

.GrowChat-chat-component .input-field::placeholder {
  color: rgba(156, 163, 175, 0.7);
}

.GrowChat-chat-component .dropdown-menu {
  background: rgba(55, 65, 81, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.GrowChat-chat-component .dropdown-item:hover {
  background: rgba(75, 85, 99, 0.8);
}

.GrowChat-chat-component .attachment-icon {
  background: rgba(107, 114, 128, 0.8);
  transition: all 0.3s ease;
}

.GrowChat-chat-component .attachment-icon:hover {
  background: rgba(156, 163, 175, 0.8);
  transform: scale(1.05);
}

.GrowChat-chat-component .send-icon {
  background: rgba(107, 114, 128, 0.8);
  transition: all 0.3s ease;
}

.GrowChat-chat-component .send-icon:hover {
  background: rgba(59, 130, 246, 0.8);
  transform: scale(1.05);
}

.GrowChat-chat-component textarea::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .GrowChat-chat-component .toggle-text {
    display: none;
  }

  .GrowChat-chat-component .mobile-compact {
    padding: 1rem;
  }

  .GrowChat-chat-component .mobile-gap {
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .GrowChat-chat-component .sm-hidden {
    display: none;
  }
}


/* Messages */

.message-content {
  line-height: 1.6;
}

.message-content pre {
  background-color: #1a1a1a;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.message-content code {
  background-color: #2d2d2d;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

.message-content pre code {
  background-color: transparent;
  padding: 0;
}

.file-block {
  border: 1px solid #3b3b3b;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.file-header {
  background-color: #2d2d2d;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #3b3b3b;
  border-radius: 0.5rem 0.5rem 0 0;
  font-family: monospace;
}

/* Markdown Typography */
.message-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b3b3b;
}

.message-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #3b3b3b;
}

.message-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

/* Lists */
.message-content ul,
.message-content ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.message-content ul {
  list-style-type: disc;
}

.message-content ol {
  list-style-type: decimal;
}

.message-content li {
  margin: 0.375rem 0;
}

/* Links */
.message-content a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

.message-content a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Blockquotes */
.message-content blockquote {
  border-left: 4px solid #3b82f6;
  margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  background-color: #1f2937;
  border-radius: 0.25rem;
}

/* Tables */
.message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.message-content th,
.message-content td {
  padding: 0.75rem;
  border: 1px solid #374151;
}

.message-content th {
  background-color: #1f2937;
  font-weight: 600;
}

.message-content tr:nth-child(even) {
  background-color: #1a1a1a;
}

/* Inline elements */
.message-content strong {
  font-weight: 600;
  color: #e5e7eb;
}

.message-content em {
  font-style: italic;
  color: #d1d5db;
}

/* Code blocks - enhanced */
.message-content pre {
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.message-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  font-size: 0.875rem;
  background-color: #2d2d2d;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  color: #e5e7eb;
}

.message-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Horizontal rule */
.message-content hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #374151;
}

/* File blocks - enhanced */
.file-block {
  border: 1px solid #3b3b3b;
  border-radius: 0.5rem;
  margin: 1rem 0;
  background-color: #1a1a1a;
}

.file-header {
  background-color: #2d2d2d;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #3b3b3b;
  border-radius: 0.5rem 0.5rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  font-size: 0.875rem;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-header::before {
  content: "📄";
  font-size: 1rem;
}

/* model selection dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background-color: #374151;
  color: #e5e7eb;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  border: none;
}

.dropdown-btn:hover {
  background-color: #4b5563;
  color: white;
}

.dropdown-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  transition: transform 0.2s;
}

.dropdown.open .dropdown-icon {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  margin-bottom: 0.5rem;
  width: 14rem;
  background-color: #374151;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0;
  z-index: 50;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #e5e7eb;
  font-size: 0.875rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-option:hover {
  background-color: #4b5563;
  color: white;
}

.dropdown-option:focus {
  outline: none;
}

.tick {
  color: #007bff;
  font-weight: bold;
}

.hidden {
  display: none;
}

.input-container-centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Smooth easing */
}

.input-container-bottom {
  position: fixed;
  /* Enable fixed positioning for bottom */
  bottom: 20px;
  /* Clean spacing from bottom */
  left: 50%;
  /* Keep horizontal center */
  transform: translateX(-50%);
  /* Only horizontal centering */
  width: 100%;
  max-width: 900px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Match timing */
}

.welcome-message {
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.welcome-message h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.welcome-message p {
  font-size: 1rem;
  margin-bottom: 1rem;
}