/* App overrides on top of Modernize theme
   The Modernize theme (mtheme/assets/css/styles.css) provides:
   - Bootstrap 5, Plus Jakarta Sans, color themes, dark mode,
   - cards, buttons, dropdowns, forms, alerts, navbar, footer, etc. */

/* ── CSS Variable Aliases ─────────────────────────────────── */
:root {
  --app-bg:            #f9fafb;
  --app-bg-surface:    #ffffff;
  --app-bg-inset:      #f3f4f6;
  --app-text:          #111827;
  --app-text-heading:  #111827;
  --app-text-muted:    #6b7280;
  --app-text-faint:    #9ca3af;
  --app-border:        #e5e7eb;
  --app-border-subtle: #f3f4f6;

  --app-blue:    #2563eb;
  --app-green:   #10b981;
  --app-red:     #ef4444;
  --app-orange:  #f59e0b;
  --app-yellow:  #eab308;
  --app-teal:    #14b8a6;
  --app-purple:  #8b5cf6;

  --app-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Consolas,
                  'Liberation Mono', Menlo, monospace;

  --app-radius:    0.75rem;
  --app-radius-sm: 0.375rem;

  --app-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --app-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ── Table header styling ───────────────────────────────────── */
.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── Avatar dropdown (no caret, circle-only trigger) ─────────── */
.dropdown-toggle-no-caret::after {
  display: none;
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Team avatar helpers ────────────────────────────────────── */
.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 600;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-md {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
}

.team-avatar-initial {
  font-size: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stat-card .stat-value {
    font-size: 1.4rem;
  }
  .main-content {
    padding: 1rem 0;
  }
}
