@import url('base.css');

/* Base container styles */
.chatbot-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  position: relative;
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0 16px;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #1f1f1f;
  font-size: 14px;
}

/* Messages area */
.messages-container {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  bottom: 210px;
  overflow-y: scroll;
  padding: 20px;
  z-index: 95;
}

/* Message bubbles */
.chat-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
  margin: 8px 0;
}

.chat-message.user {
  background: #e8f0fe;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-message.assistant {
  background: #f8f9fa;
  border-bottom-left-radius: 4px;
}

.chat-message.system {
  background: #f1f3f4;
  color: #5f6368;
  font-style: italic;
  text-align: center;
  max-width: 100%;
}

/* Code block styling in chat messages */
.chat-message pre {
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 10px;
  margin: 8px 0;
  overflow-x: auto;
  border-left: 3px solid #3498db;
}

.chat-message code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* Python code specific styling */
.chat-message pre.python-code {
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 10px;
  margin: 8px 0;
  overflow-x: auto;
  border-left: 3px solid #4b8bf4;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* Question styling */
.chat-message .question-text {
  font-weight: 500;
  margin-bottom: 10px;
}

/* Answer label styling */
.chat-message .answer-label {
  font-weight: 600;
  color: #2c3e50;
  margin-top: 15px;
  margin-bottom: 5px;
}

/* Input area */
.input-container {
  position: absolute;
  bottom: 50px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 98;
}

.chat-input {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  border-radius: 8px;
}

.chat-input:focus {
  outline: none;
}

/* Placeholder text size */
.chat-input::placeholder {
  font-size: 13px;
  color: #5f6368;
}

/* Buttons */
.mode-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: transparent;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#chat-buttons-container {
  position: absolute;
  bottom: 130px;
  right: 24px;
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  z-index: 99;
  background: #ffffff;
}

.apply-btn,
.cancel-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 24px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.apply-btn {
  background: #1a73e8;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cancel-btn {
  background: #fff;
  color: #1a73e8;
  border: 1px solid rgba(26, 115, 232, 0.5);
}

/* Header */
.chat-header {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  height: 36px;
  z-index: 97;
}

.notebook-name-display {
  color: #5f6368;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
}

.model-info {
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(26, 115, 232, 0.08);
  border-radius: 8px;
}

/* Hover states */
.mode-toggle:hover { background: rgba(26, 115, 232, 0.08); }
.apply-btn:hover { background: #1557b0; }
.cancel-btn:hover { background: rgba(26, 115, 232, 0.04); }

/* Loading indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.typing-indicator {
  display: flex;
  align-items: center;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background: #3498db;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: bounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

/* Alert styling */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

/* Question title styling */
.alert h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #8a6d3b;
}

/* Details/Summary styling */
details {
  margin: 15px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

details summary {
  cursor: pointer;
  padding: 5px;
  color: #1a73e8;
}

details summary:hover {
  color: #1557b0;
}

/* Add your styles here */

