/* llm-proxy-poc — stili custom (Tailwind via CDN per il resto) */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}
.btn-primary:hover { background: #2563eb; }
.btn-primary:disabled { background: #475569; cursor: not-allowed; }

.btn-danger {
  background: #dc2626;
  color: white;
}
.btn-danger:hover { background: #b91c1c; }

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
}
.btn-ghost:hover { background: #334155; color: white; }

.input, .textarea, .select {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.875rem;
}

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

.textarea {
  font-family: ui-monospace, "SF Mono", "Monaco", monospace;
  resize: vertical;
  min-height: 200px;
}

.badge {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green { background: #064e3b; color: #6ee7b7; }
.badge-blue  { background: #1e3a8a; color: #93c5fd; }
.badge-red   { background: #7f1d1d; color: #fca5a5; }
.badge-gray  { background: #334155; color: #cbd5e1; }

.nav {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.nav a:hover { background: #334155; color: white; }
.nav a.active { background: #3b82f6; color: white; }
.nav .brand { font-weight: 700; color: white; margin-right: 1rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  color: white;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.toast.success { border-color: #10b981; }
.toast.error { border-color: #ef4444; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #334155; }
th { color: #94a3b8; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
tr:hover { background: rgba(255,255,255,0.03); }

code {
  font-family: ui-monospace, "SF Mono", monospace;
  background: #0f172a;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: #93c5fd;
}

pre {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85em;
}

.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid #334155;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}
.empty h3 { color: #94a3b8; margin-bottom: 0.5rem; }

.kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 0.25rem;
  color: #cbd5e1;
}
