/* Global layout / background */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* By default Bootstrap 5.3 has .bg-body-tertiary */
.bg-body-tertiary {
  background: #f3f4f6;
}

/* Page wrapper so footer isn't glued to content */
.page-wrapper {
  min-height: calc(100vh - 56px - 60px); /* navbar + footer approx */
}

/* Typography tweaks */
h1, h2, h3, h4, h5 {
  letter-spacing: 0.02em;
}

/* Navbar */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.navbar .nav-link {
  font-size: 0.95rem;
  padding-inline: 0.9rem;
}

.navbar .nav-link.active {
  font-weight: 600;
}

/* Cards – subtle “app” style */
.card {
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Tables */
.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom-width: 1px;
}

.table-hover tbody tr:hover {
  background-color: #f9fafb;
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-size: 0.9rem;
}

.btn-primary {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning {
  border-radius: 999px;
}

/* Forms */
.form-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border-radius: 0.5rem;
  border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.25);
}

/* Badges (status pills) */
.badge {
  border-radius: 999px;
  font-size: 0.7rem;
  padding-inline: 0.6rem;
}

/* Alerts */
.alert {
  border-radius: 0.75rem;
}

/* Footer */
.app-footer {
  background: #ffffff;
}

/* Utility text tracking */
.tracking-tight {
  letter-spacing: 0.03em;
}

/* Invoice-specific tweaks (won't hurt other pages) */
@media print {
  body {
    background: #ffffff !important;
  }
  .flash-container {
    display: none !important;
  }
}
