/* Domain Tools - Custom Styles for Bootstrap 5 */

/* Font */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.font-mono, pre, code {
  font-family: 'JetBrains Mono', monospace;
}

/* Result box for tool outputs */
.result-box {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tool cards */
.tool-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Custom primary color override (indigo) */
:root {
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
}

.bg-primary {
  background-color: #4f46e5 !important;
}

.text-primary {
  color: #4f46e5 !important;
}

.btn-primary {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.btn-primary:hover {
  background-color: #4338ca;
  border-color: #4338ca;
}

.btn-outline-primary {
  color: #4f46e5;
  border-color: #4f46e5;
}

.btn-outline-primary:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  padding: 4rem 0;
}

/* Loading spinner animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Table improvements */
.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Link hover effects */
a.text-muted:hover {
  color: #4f46e5 !important;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Card hover effect */
.card.clickable:hover {
  border-color: #4f46e5;
  cursor: pointer;
}

/* Badge custom styles */
.badge.bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.badge.bg-danger-subtle {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.badge.bg-warning-subtle {
  background-color: rgba(255, 193, 7, 0.1);
  color: #997404;
}

.badge.bg-info-subtle {
  background-color: rgba(13, 202, 240, 0.1);
  color: #0aa2c0;
}

/* Smooth transitions */
.nav-link,
.btn,
.card {
  transition: all 0.2s ease-in-out;
}

/* Admin sidebar active state */
.nav-link.active {
  font-weight: 500;
}
