
/* Add these new styles to your existing styles.css */

/* Auth Page Styles */
.auth-page {
  padding: 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth__container {
  max-width: 450px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth__tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.auth__tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.auth__tab.active {
  color: var(--primary);
}

.auth__tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.auth__form h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.auth__subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn--full {
  width: 100%;
  margin-top: 1rem;
}

.btn--google {
  width: 100%;
  background: #fff;
  color: #333;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn--google:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.auth__note {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Chat Page Styles */
.chat-page {
  padding: 2rem 0;
  min-height: calc(100vh - var(--header-height));
  background: var(--background);
}

.chat__container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
}

.chat__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.chat__header-left h2 {
  margin-bottom: 0.5rem;
}

.chat__level-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat__level-selector label {
  font-weight: 500;
  color: var(--text-secondary);
}

.chat__level-selector select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

.chat__header-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat__welcome {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-radius: var(--border-radius);
  margin: auto;
  max-width: 600px;
}

.chat__welcome h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.chat__welcome ul {
  text-align: left;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.chat__welcome li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.chat__message {
  display: flex;
  gap: 1rem;
  max-width: 80%;
}

.chat__message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat__message--assistant {
  align-self: flex-start;
}

.chat__message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat__message--user .chat__message-avatar {
  background: var(--primary);
  color: white;
}

.chat__message--assistant .chat__message-avatar {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  color: white;
}

.chat__message-content {
  background: var(--background);
  padding: 1rem 1.5rem;
  border-radius: 18px;
  position: relative;
}

.chat__message--user .chat__message-content {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat__message--assistant .chat__message-content {
  background: white;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat__message-text {
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat__message--assistant .chat__message-text {
  color: var(--text-primary);
}

.chat__message-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.chat__message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}

.chat__input-area {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat__input-container {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.chat__input-container textarea {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  resize: none;
  min-height: 60px;
  max-height: 150px;
}

.chat__input-container textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.chat__input-actions {
  display: flex;
  gap: 0.5rem;
}

.btn--icon {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 12px;
}

.chat__hints {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .chat__container {
    height: calc(100vh - 100px);
  }
  
  .chat__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .chat__header-right {
    width: 100%;
    justify-content: center;
  }
  
  .chat__message {
    max-width: 90%;
  }
  
  .chat__input-container {
    flex-direction: column;
  }
  
  .chat__input-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .btn--icon {
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Animation for new messages */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat__message {
  animation: messageSlideIn 0.3s ease;
}
