.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #EBF1F5;
  border-radius: 8px;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  position: relative;
  width: 100%;
}

.chat-container.collapsed {
  transform: translateX(-100%);
  width: 0;
}

.chat-container.collapsed .messages-container,
.chat-container.collapsed .input-container {
  opacity: 0;
  transform: translateX(-100%);
}

.chat-header {
  padding: 10px;
  background-color: #EBF1F5;
  color: #0F518A;
  border-bottom: 1px solid #ddd;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.chat-container.collapsed .chat-header {
  transform: translateX(-100%);
}

.collapse-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #0F518A;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.collapse-button:hover {
  background-color: rgba(15, 81, 138, 0.1);
}

.chat-container.collapsed .collapse-button {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 100;
  background-color: #0F518A;
  color: white;
  border-radius: 0 4px 4px 0;
  width: 24px;
  height: 36px;
  transform: translateY(-50%);
}

.chat-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #EBF1F5;
  border-radius: 4px;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.message {
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 85%;
  margin: 2px 15px;
  word-wrap: break-word;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.4;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

.user-message {
  align-self: flex-end;
  background-color: #0F518A;
  color: white;
  margin-top: 8px;
}

.ai-message {
  align-self: flex-start;
  background-color: white;
  margin-top: 8px;
}

.processing {
  padding: 0;
  background: none;
  border: none;
}

.input-container {
  display: flex;
  padding: 0;
  background-color: #EBF1F5;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  margin: 0 15px 10px 15px;
  width: calc(100% - 30px);
}

.input-field-wrapper {
  position: relative;
  width: 100%;
  background-color: white;
  border-radius: 8px;
  padding: 0;
}

.input-container input {
  width: 100%;
  padding: 8px 15px;
  padding-right: 95px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background-color: white;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: 38px;
}

.input-container input:focus {
  box-shadow: 0 1px 5px rgba(15, 81, 138, 0.2);
}

.send-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0F518A;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  min-width: 80px;
  text-align: center;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-button:hover:not(:disabled) {
  background-color: #0a3e6c;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) translateX(-1px);
}

.send-button:active {
  transform: translateY(-50%) translateX(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.send-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: none;
}

/* Add styles for sequence result messages */
.sequence-message, .error-message {
  max-width: 70%;
  padding: 8px 12px;
  margin-left: 15px;
}

.sequence-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sequence-details {
  display: flex;
  gap: 12px;
  font-size: 0.9em;
  color: #555;
}

.sequence-details span {
  background-color: #f3f4f6;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.import-button {
  align-self: flex-start;
  background-color: #1a7f37;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 0.2s;
}

.import-button:hover:not(:disabled) {
  background-color: #116329;
}

.import-button:disabled {
  background-color: #8cbea0;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Add a subtle animation for processing state */
@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.import-button:disabled {
  animation: pulse 1.5s infinite ease-in-out;
}

.imported-status {
  color: #1a7f37;
  font-size: 0.9em;
  margin-top: 4px;
}

/* Add styles for sequence result list */
.sequence-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 15px;
}

.sequence-results-container {
  max-width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 10px 0 !important;
}

.sequence-result-card {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #f5f8fb;
  border: 2px solid #B0D0E4;
}

.sequence-result-header {
  background-color: #b0d0e4;
  padding: 8px 12px;
  text-align: right;
}

.see-detail-link {
  color: #0F518A;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.see-detail-link:hover {
  text-decoration: underline;
}

.sequence-result-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sequence-title {
  font-size: 0.95rem;
  color: #333;
}

/* Remove old sequence styles that are no longer needed */
.sequence-details {
  display: none;
}

.imported-status {
  display: none;
}

/* Update message styles for sequence results */
.ai-message.sequence-message {
  max-width: 100%;
  background: transparent;
  padding: 0;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .sequence-results-container {
    margin: 0 !important;
  }
  
  .sequence-result-card {
    width: 100%;
  }
  
  .sequence-title {
    font-size: 0.9rem;
  }
  
  .see-detail-link {
    font-size: 0.8rem;
  }
}

/* Update message styles for sequence results */
.ai-message.sequence-results-container {
  max-width: 100%;
  background: transparent;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.sequence-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.sequence-details {
  display: flex;
  gap: 8px;
}

.sequence-size, .sequence-structure {
  background-color: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
}

.insert-button {
  background-color: #2c8898;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.insert-button:hover:not(:disabled) {
  background-color: #1e5f6b;
}

/* Add styling for markdown rendered content */
.markdown-content {
  width: 100%;
  max-width: 100%;
  text-align: left;
  padding: 10px 15px;
  background-color: #F7F9FC;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.markdown-content h3 {
  margin: 12px 0;
  padding: 15px;
  border-left: 4px solid #0F518A;
  background-color: rgba(15, 81, 138, 0.1);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  color: #0F518A;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.markdown-content h3:hover {
  background-color: rgba(15, 81, 138, 0.15);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(2px);
}

.markdown-content h3::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #0F518A;
  border-radius: 50%;
  margin-right: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.markdown-content p {
  margin: 10px 0;
  line-height: 1.5;
}

.markdown-content ul, 
.markdown-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.markdown-content li {
  margin-bottom: 4px;
}

/* Make code blocks more visible */
.markdown-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
}

/* Add a special style for warnings or notes */
.markdown-content blockquote {
  border-left: 3px solid #f0ad4e;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: rgba(240, 173, 78, 0.1);
  border-radius: 0 4px 4px 0;
}

.markdown-content strong {
  font-weight: 600;
  color: #0a3e6c;
}

.markdown-content a {
  color: #0F518A;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 81, 138, 0.3);
}

.markdown-content a:hover {
  border-bottom: 1px solid #0F518A;
}

/* Push buttons and input to bottom */
.chat-bottom-container {
  margin-top: 5px;
  width: 100%;
  padding-bottom: 5px;
}

/* Update the search button container styles */
.search-button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
  background-color: white;
  margin: 0 15px 5px 15px;
  border-radius: 8px;
  width: calc(100% - 30px);
}

.action-button {
  flex: 1;
  padding: 6px 10px;
  background-color: #0F518A;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
  background-color: #0a3e6c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.action-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Remove emoji styles */
.find-sequences-button::before,
.optimize-button::before {
  display: none;
}

/* New shared class for sequence buttons */
.sequence-action-button {
  flex: 1;
  padding: 8px 12px;
  background-color: #0F518A;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sequence-action-button:hover {
  background-color: #0a3e6c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.sequence-action-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Ensure buttons are hidden when chat is collapsed */
.chat-container.collapsed .search-button-container {
  opacity: 0;
  transform: translateX(-100%);
} 