:root {
  --primary-color: #6366f1;
  --secondary-color: #4f46e5;
  --background-color: #f8fafc;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.google-btn {
  background-color: white;
  color: #757575;
  border: 1px solid #ddd;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.google-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.google-btn img {
  width: 24px;
  height: 24px;
}

/* Chat Interface */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 15px 15px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 70%;
  padding: 1rem;
  border-radius: 15px;
  position: relative;
  white-space: pre-wrap;
}

.message.user {
  align-self: flex-end;
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 5px;
}

.message.assistant {
  align-self: flex-start;
  background: #f1f5f9;
  border-bottom-left-radius: 5px;
}

.message.tool-notification {
  align-self: center;
  max-width: 90%;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  padding: 0.5rem;
  opacity: 0.8;
  border: none;
  margin: -0.5rem 0;
}

.input-container {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 15px 15px;
}

.message-input {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  resize: none;
  min-height: 20px;
  max-height: 150px;
  outline: none;
  transition: border-color 0.3s ease;
}

.message-input:focus {
  border-color: var(--primary-color);
}

.send-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.send-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}
