:root {
  --brand-navy: #10233a;
  --brand-slate: #5f7188;
  --brand-cream: #f4f7fb;
  --brand-white: #ffffff;
  --brand-accent: #ff9b2f;
  --brand-border: rgba(16, 35, 58, 0.1);
  --brand-shadow: 0 24px 60px rgba(16, 35, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 155, 47, 0.12), transparent 24%),
    linear-gradient(180deg, #eff4fa 0%, #f7f9fc 100%);
  color: var(--brand-navy);
}

.auth-body {
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(14, 30, 49, 0.98), rgba(11, 21, 34, 0.95)),
    url("../img/1200px.png") center/cover;
  color: var(--brand-white);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

.brand-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffb766, #ff8a00);
  color: #10233a;
}

.brand-block h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.brand-block p,
.sidebar-foot {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.app-nav .nav-link {
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.content-area {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  font-weight: 800;
}

.topbar-meta {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--brand-border);
  font-weight: 700;
}

.topbar-meta a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.35rem;
  color: var(--brand-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card,
.card {
  border-radius: 24px;
}

.stat-card {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
}

.stat-card span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--brand-slate);
  font-size: 0.9rem;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--brand-border) !important;
  box-shadow: var(--brand-shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-brand {
  border: 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #ffb154, #ff8a00);
  box-shadow: 0 12px 28px rgba(255, 138, 0, 0.24);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.auth-hero {
  position: relative;
  padding: 56px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 21, 34, 0.92), rgba(16, 35, 58, 0.78)),
    url("../img/1400px.png") center/cover;
}

.auth-hero-inner {
  max-width: 520px;
  margin-top: 10vh;
}

.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1rem;
}

.auth-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  box-shadow: var(--brand-shadow);
}

.auth-card h2 {
  font-weight: 800;
}

.table thead th {
  color: var(--brand-slate);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-width: 1px;
}

.table td,
.table th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: middle;
}

.form-control,
.form-select {
  border-radius: 14px;
  border-color: rgba(16, 35, 58, 0.14);
  padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 155, 47, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(255, 155, 47, 0.16);
}

.list-group-item {
  background: transparent;
  border-color: rgba(16, 35, 58, 0.08);
}

.chart-panel {
  position: relative;
  height: 340px;
  margin-top: 1.25rem;
}

.chart-panel canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1199px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 18px;
  }

  .content-area {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .chart-panel {
    height: 280px;
  }

  .auth-hero,
  .auth-form-wrap {
    padding: 24px;
  }
}
