/* Wolf Maritime Application - Custom Styles */

/* Brand colors */
:root {
  --wolf-primary: #0d6efd;
  --wolf-secondary: #6c757d;
  --wolf-success: #198754;
  --wolf-danger: #dc3545;
}

/* Active nav link highlighting */
.navbar-nav .nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--wolf-primary);
}

/* Stat cards with hover effect */
.stat-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Main content spacing */
.main-content {
  padding: 2rem 0;
}

/* Table action buttons spacing */
.table .btn-group {
  gap: 0.25rem;
}

/* Form validation styling */
.was-validated .form-control:invalid {
  border-color: var(--wolf-danger);
}

.was-validated .form-control:valid {
  border-color: var(--wolf-success);
}

/* HTMX loading indicator */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Spinner for loading states */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
  --bs-border-color: rgba(255, 255, 255, 0.2);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .shadow-sm {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
              0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .card.border-0 {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .border-end,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-start {
  border-color: rgba(255, 255, 255, 0.18) !important;
}
