/* App theme on top of Bootstrap 5 (Hostinger-safe external CSS) */
:root {
  --tm-bg: #f3f0f8;
  --tm-ink: #142033;
  --tm-accent: #8b5cf6;
  --tm-accent-2: #7c3aed;
  --tm-nav: #1e1b4b;
  --tm-panel: #ffffff;
}

body.app-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(30, 27, 75, 0.10), transparent 55%),
    var(--tm-bg);
  color: var(--tm-ink);
}

main.container.app-shell {
  flex: 1 0 auto;
  width: 100%;
}

.app-footer {
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.app-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-navbar {
  background: linear-gradient(135deg, var(--tm-nav), #3b2580);
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.18);
}

.app-navbar .nav-link {
  color: rgba(255, 255, 255, 0.86) !important;
  border-radius: 0.5rem;
  padding: 0.4rem 0.7rem !important;
  font-weight: 500;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active,
.app-navbar .nav-link.show {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.app-dropdown {
  background: #3b2580;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(30, 27, 75, 0.28);
}

.app-dropdown .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
}

.app-dropdown .dropdown-item:hover,
.app-dropdown .dropdown-item:focus,
.app-dropdown .dropdown-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-navbar .navbar-brand,
.app-navbar .navbar-text {
  color: #fff !important;
}

.app-panel {
  background: var(--tm-panel);
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(20, 32, 51, 0.06);
}

.app-panel-header {
  border-bottom: 1px solid rgba(20, 32, 51, 0.06);
}

.page-kicker {
  color: #5b6b7c;
  font-size: 0.92rem;
}

.stat-tile {
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 0.9rem;
  background: #f8f6fc;
}

.stat-tile .stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--tm-accent-2);
}

.dash-action {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.code,
.code5 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
}

img.thumb {
  max-width: 96px;
  border-radius: 0.5rem;
  border: 1px solid rgba(20, 32, 51, 0.1);
}

.summary-box {
  background: #f4f8fc;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  border-radius: 0.75rem;
}

.amount-input-group {
  max-width: 180px;
}

.auth-wrap {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.table thead th {
  white-space: nowrap;
}

@media print {
  .app-navbar,
  .no-print {
    display: none !important;
  }
  body.app-body {
    background: #fff;
  }
  .app-panel {
    box-shadow: none;
    border: none;
  }
}
