/* Bodyfit Procurement Platform — Global Styles */

body { font-family: 'Inter', system-ui, sans-serif; }

/* Navigation */
.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #f0f0f0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(0, 217, 255, 0.1); color: #00d9ff; }
.nav-link.active { background: #00d9ff; color: #0e1117; font-weight: 600; }

/* Cards */
.card {
  background: #1e2130;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Metrics */
.metric-label { font-size: 0.7rem; color: #9ca3af; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.25rem; }
.metric-value { font-size: 1.75rem; font-weight: 700; color: #f0f0f0; }

/* Summary cards in Lead Detail */
.summary-card {
  background: #1e2130;
  border-left-width: 3px;
  border-radius: 0.375rem;
  padding: 0.75rem;
}
.border-l-primary { border-left-color: #00d9ff; }
.border-l-accent  { border-left-color: #7ed321; }
.border-l-danger  { border-left-color: #ff6b6b; }
.border-l-yellow-500 { border-left-color: #eab308; }
.summary-label { font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.summary-value { font-size: 0.9rem; color: #f0f0f0; }

/* Buttons */
.btn-primary {
  background: #00d9ff;
  color: #0e1117;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: #f0f0f0;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: #00d9ff; color: #00d9ff; }

.btn-danger {
  background: #ff6b6b;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}
.btn-danger:hover { opacity: 0.85; }

/* Form elements */
.form-label { display: block; font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.25rem; }
.input {
  width: 100%;
  background: #0e1117;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #f0f0f0;
  font-size: 0.875rem;
  outline: none;
  resize: vertical;
}
.input:focus { border-color: #00d9ff; }

/* Tabs */
.tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: #f0f0f0; }
.tab.active { color: #00d9ff; border-bottom-color: #00d9ff; }

/* Table rows */
.leads-row { cursor: pointer; border-bottom: 1px solid #374151; }
.leads-row:hover td { background: rgba(0, 217, 255, 0.05); }
.leads-row.selected td { background: rgba(0, 217, 255, 0.1); }
.leads-row td { padding: 0.6rem 1rem 0.6rem 0; }

/* Status badges */
.badge-new        { background: #374151; color: #9ca3af; padding: 2px 8px; border-radius: 9999px; font-size: 0.75rem; }
.badge-processing { background: rgba(234, 179, 8, 0.2); color: #eab308; padding: 2px 8px; border-radius: 9999px; font-size: 0.75rem; }
.badge-replied    { background: rgba(126, 211, 33, 0.2); color: #7ed321; padding: 2px 8px; border-radius: 9999px; font-size: 0.75rem; }

/* Alert / feedback */
.alert-success { background: rgba(126, 211, 33, 0.15); border-left: 3px solid #7ed321; padding: 0.75rem; border-radius: 0.375rem; color: #7ed321; }
.alert-error   { background: rgba(255, 107, 107, 0.15); border-left: 3px solid #ff6b6b; padding: 0.75rem; border-radius: 0.375rem; color: #ff6b6b; }
.alert-info    { background: rgba(0, 217, 255, 0.1); border-left: 3px solid #00d9ff; padding: 0.75rem; border-radius: 0.375rem; color: #00d9ff; }

/* Done / Fertig toggle button in leads table */
.done-check {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: transform 0.1s;
}
.done-check:hover { transform: scale(1.2); }
.done-check.open  { color: #4b5563; font-size: 1rem; }
.done-check.open:hover { color: #7ed321; }
.done-check.done  { color: #7ed321; }

/* Status badges */
.badge-success { background: rgba(126,211,33,0.2); color: #7ed321; padding: 1px 6px; border-radius: 9999px; font-size: 0.7rem; white-space: nowrap; }
.badge-danger  { background: rgba(255,107,107,0.2); color: #ff6b6b; padding: 1px 6px; border-radius: 9999px; font-size: 0.7rem; white-space: nowrap; }
.badge-info    { background: rgba(0,217,255,0.15);  color: #00d9ff;  padding: 1px 6px; border-radius: 9999px; font-size: 0.7rem; white-space: nowrap; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #374151; border-top-color: #00d9ff; border-radius: 50%; animation: spin 0.6s linear infinite; }
