@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #f9fafb;
  color: #101828;
}

.card {
  background: white;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
}

.card-hover {
  transition: all 0.2s ease;
}

.card-hover:hover {
  box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -1px rgba(16, 24, 40, 0.06);
  border-color: #d0d5dd;
}

.stat-card {
  background: white;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
}

.nav-button {
  background: white;
  border: 1px solid #d0d5dd;
  color: #344054;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-button:hover {
  background: #f9fafb;
  border-color: #98a2b3;
}

.nav-button-primary {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  color: white;
  font-weight: 500;
}

.nav-button-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.nav-button-danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.nav-button-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.request-card {
  background: white;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.request-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -1px rgba(16, 24, 40, 0.06);
}

.modal-overlay {
  background: rgba(16, 24, 40, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(16, 24, 40, 0.25);
}

.method-badge {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 8px;
}

.code-block {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.header-blur {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #eaecf0;
}

.section-header {
  background: #f9fafb;
  border-bottom: 1px solid #eaecf0;
}

.message-role-user {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-left: 3px solid #3b82f6;
}

.message-role-assistant {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #64748b;
}

.message-role-system {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #f59e0b;
}

.tool-badge {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
  font-weight: 500;
}

.scrollbar-custom {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.scrollbar-custom::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.scrollbar-dark {
  scrollbar-width: thin;
  scrollbar-color: #4b5563 #374151;
}

.scrollbar-dark::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-dark::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 3px;
}

.scrollbar-dark::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

.scrollbar-dark::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.text-primary {
  color: #101828;
}

.text-secondary {
  color: #475467;
}

.text-tertiary {
  color: #667085;
}

.icon-primary {
  color: #475467;
}

.icon-accent {
  color: #3b82f6;
}
