/* Custom component styles */

.card {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 0.75rem;
  padding: 1rem;
}

.nav-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #f7931a;
  font-weight: 600;
}

.select-sm {
  background: #1a1a2e;
  border: 1px solid #0f3460;
  color: #e5e7eb;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  outline: none;
}

.select-sm:focus {
  box-shadow: 0 0 0 1px #f7931a;
}

.select-full {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #0f3460;
  color: #e5e7eb;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.select-full:focus {
  box-shadow: 0 0 0 1px #f7931a;
}

.input-full {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #0f3460;
  color: #e5e7eb;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.input-full:focus {
  box-shadow: 0 0 0 1px #f7931a;
}

input[type="date"].input-full::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.btn-primary {
  background: #f7931a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #e07d0e;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #0f3460;
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #1e4a7a;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #0f3460; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1e4a7a; }

/* Animate pulse fallback */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
