/* ----------------------------------------------------
   Global layout
---------------------------------------------------- */
:root {
  --app-bg: #f3f4f6;
  --app-card-bg: #ffffff;
  --app-accent: #2563eb;
  --app-accent-soft: rgba(37, 99, 235, 0.08);
}

body.bg-app {
  background: radial-gradient(circle at top left, #e5edff, #f3f4f6 40%, #f9fafb 100%);
  min-height: 100vh;
}

/* Make sure footer sits at bottom on short pages */
html, body {
  height: 100%;
}

/* ----------------------------------------------------
   Navbar
---------------------------------------------------- */
.app-navbar {
  background: linear-gradient(135deg, #111827, #020617);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 1.2rem;
}

/* ----------------------------------------------------
   Main & cards
---------------------------------------------------- */
.app-main .container {
  max-width: 1200px;
}

.app-card {
  background-color: var(--app-card-bg);
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.app-card-compact {
  border-radius: 0.6rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Auth card tweaks */
.card-auth {
  border-radius: 0.9rem;
}

/* ----------------------------------------------------
   Typography & headings
---------------------------------------------------- */
h1, .h1, h2, .h2, h3, .h3 {
  color: #0f172a;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--app-accent-soft);
  color: var(--app-accent);
}

/* Smaller muted text */
.text-muted-soft {
  color: #6b7280 !important;
}

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

/* ----------------------------------------------------
   Tables
---------------------------------------------------- */
.table {
  background-color: #ffffff;
}

.table thead th {
  background: linear-gradient(to bottom, #f9fafb, #eef2ff);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4b5563;
  border-bottom-width: 1px;
}

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

.table td, .table th {
  vertical-align: middle;
}

/* Make striped rows a bit softer */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(249, 250, 251, 0.9);
}

/* ----------------------------------------------------
   Buttons & forms
---------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1e40af;
}

.btn-outline-primary {
  border-color: #2563eb;
  color: #1d4ed8;
}

.btn-outline-primary:hover {
  background-color: var(--app-accent-soft);
  border-color: #1d4ed8;
}

.form-control, .form-select {
  border-radius: 0.5rem;
  border-color: rgba(148, 163, 184, 0.7);
}

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

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.app-footer {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

/* ----------------------------------------------------
   Utility tweaks
---------------------------------------------------- */
.badge {
  border-radius: 999px;
  font-weight: 500;
}

code {
  font-size: 0.85em;
}

/* Scrollbars (desktop-ish, optional) */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.8);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.95);
  }
}

/* ----------------------------------------------------
   Print styles
---------------------------------------------------- */
@media print {
  body.bg-app {
    background: #ffffff !important;
  }

  .app-navbar,
  .app-footer,
  .no-print {
    display: none !important;
  }

  .app-main .container {
    max-width: 100% !important;
  }

  .app-card {
    box-shadow: none !important;
    border-color: #d1d5db !important;
  }
}

/* Info blocks used in checklists */
.info-block {
  border-left: 4px solid #0dcaf0; /* Bootstrap info colour-ish */
  background: #f8fdff;
}
.info-block .info-block-title {
  font-weight: 600;
}
.info-block small {
  font-size: 0.875rem;
}
