﻿/* Base layout */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin-bottom: 0;
  color: #1f2937;
  background:
    radial-gradient(circle at top, rgba(79, 70, 229, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

a {
  color: #4f46e5;
}

a:hover {
  color: #3730a3;
  text-decoration: none;
}

.app-shell {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-navbar {
  background: linear-gradient(90deg, #111827 0%, #1f2937 55%, #4f46e5 100%);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  margin: 0.15rem 0.15rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero,
.content-card,
.stats-card,
.chart-card,
.auth-card,
.table-shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
}

.page-hero {
  padding: 2rem;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  color: #475569;
  max-width: 60ch;
  margin-bottom: 0;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.content-card,
.table-shell,
.chart-card,
.auth-card {
  padding: 1.25rem;
}

.table-shell .table {
  margin-bottom: 0;
}

.table-shell .table thead th {
  border-top: 0;
  color: #334155;
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.table-shell .table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.index-caption-column {
  width: 18rem;
  max-width: 18rem;
}

.index-caption-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: 0;
  box-shadow: 0 0.5rem 1.25rem rgba(79, 70, 229, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-outline-primary {
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.metric-card h3,
.metric-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.metric-card p {
  color: #475569;
  margin-bottom: 0.9rem;
}

.metric-card .btn {
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.footer {
  position: relative;
  width: 100%;
  padding: 1rem 0 1.5rem;
  color: #64748b;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 1rem;
}

.login-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-actions .nav-link,
.login-actions .btn-link {
  color: #fff;
}

.login-actions .btn-link {
  padding-left: 0;
  padding-right: 0;
  text-decoration: none;
}
