/* Brand Colors - From BRAND_GUIDELINES.md */
:root {
  --bridge-blue: #2563EB;
  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --gray-900: #111827;
  --slate-500: #64748B;
  --signal-green: #10B981;
  --active-yellow: #FBBF24;
  --coral-pulse: #F43F5E;
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  line-height: 1.625;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Mesh Gradient Background */
.mesh-gradient {
  background: linear-gradient(to top right, #EFF6FF 0%, #FFFFFF 50%, #ECFDF5 100%);
}

/* Buttons */
.btn-primary {
  background-color: var(--bridge-blue);
  color: var(--white);
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--gray-900);
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--slate-50);
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid #F3F4F6;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Text Colors */
.text-main {
  color: var(--gray-900);
}

.text-muted {
  color: var(--slate-500);
}

.text-success {
  color: var(--signal-green);
}

.text-accent {
  color: var(--active-yellow);
}

.text-emotion {
  color: var(--coral-pulse);
}

/* Chat Window Styles - ChatGPT-style */
.chat-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.chat-window {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window.minimized {
  transform: translateY(calc(100% - 60px));
}

.chat-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.chat-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.chat-messages {
  max-height: 60vh;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

.chat-message {
  margin-bottom: 1.5rem;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user {
  display: flex;
  justify-content: flex-end;
}

.chat-message.assistant {
  display: flex;
  justify-content: flex-start;
}

.message-content {
  max-width: 75%;
  padding: 0.875rem 1.125rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.message-content.user {
  background: var(--bridge-blue);
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.message-content.assistant {
  background: white;
  color: var(--gray-900);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-input-wrapper {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.25rem 1.5rem;
}

.chat-input-container {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  max-width: 48rem;
  margin: 0 auto;
}

.chat-input {
  flex: 1;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.5rem;
  font-size: 0.9375rem;
  outline: none;
  background: white;
  transition: all 0.2s ease;
  resize: none;
  min-height: 44px;
  max-height: 200px;
  overflow-y: auto;
}

.chat-input:focus {
  border-color: var(--bridge-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-input::placeholder {
  color: var(--slate-500);
}

.chat-send-btn {
  background: var(--bridge-blue);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: #1D4ED8;
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  background: var(--slate-500);
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-toggle-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--bridge-blue);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  font-size: 1.5rem;
}

.chat-toggle-btn:hover {
  background: #1D4ED8;
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.chat-toggle-btn.hidden {
  display: none;
}

.chat-loading {
  display: flex;
  gap: 0.375rem;
  padding: 0.875rem 1.125rem;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  max-width: 75%;
}

.chat-loading span {
  width: 8px;
  height: 8px;
  background: var(--bridge-blue);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading span:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-loading span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

