:root {
  --color-primary: #123c73;
  --color-primary-soft: #1e5aa8;
  --color-primary-deep: #0b274b;
  --color-accent: #0f766e;
  --color-surface: #f4f7fb;
  --color-surface-strong: #e8eef6;
  --color-card: rgba(255, 255, 255, 0.92);
  --color-border: #d7e2ee;
  --color-text: #102a43;
  --color-text-muted: #486581;
  --color-success: #15803d;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --shadow-soft: 0 18px 45px rgba(15, 39, 70, 0.08);
  --shadow-card: 0 12px 32px rgba(15, 39, 70, 0.1);
  --shadow-lift: 0 18px 42px rgba(18, 60, 115, 0.16);
}

* {
  font-family: "Plus Jakarta Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(30, 90, 168, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #eef4fa 0%, #f8fbfd 42%, #f3f7fb 100%);
}

a {
  transition: all 0.2s ease;
}

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)), url("../images/background.png");
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
  z-index: -1;
}

.page-section {
  position: relative;
}

.page-section::before {
  content: "";
  position: absolute;
  inset: 2rem auto auto 0;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(30, 90, 168, 0.08), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 60, 115, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-title {
  margin-top: 1rem;
  color: var(--color-primary-deep);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
}

.page-subtitle {
  margin-top: 0.9rem;
  max-width: 48rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.surface-card,
.glass-morphism,
.content-card,
.form-card,
.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: var(--color-card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.surface-card,
.content-card,
.form-card {
  border-radius: 1.25rem;
}

.form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 253, 0.94));
}

.form-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.08), transparent 68%);
  pointer-events: none;
}

.surface-card::before,
.content-card::before,
.form-card::before,
.stat-card::before,
.mini-stat::before,
.mobile-report-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(18, 60, 115, 0.32), rgba(15, 118, 110, 0.18), transparent);
  pointer-events: none;
}

.stat-card {
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.hover-scale {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hover-scale:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(30, 90, 168, 0.2);
}

.gradient-bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 65%, #2d7ecf 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1d9e93 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  background:
    linear-gradient(115deg, rgba(8, 33, 66, 0.96) 0%, rgba(18, 60, 115, 0.92) 46%, rgba(15, 118, 110, 0.74) 100%),
    url("../images/background.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 60px rgba(11, 39, 75, 0.24);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.hero-panel::after,
.dashboard-banner::after,
.auth-hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  filter: blur(4px);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.45rem;
}

/* Compatibility helpers for dark hero/banner sections. */
[class~="text-white/85"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

[class~="text-white/82"] {
  color: rgba(255, 255, 255, 0.82) !important;
}

[class~="text-white/78"] {
  color: rgba(255, 255, 255, 0.78) !important;
}

[class~="text-white/75"] {
  color: rgba(255, 255, 255, 0.75) !important;
}

[class~="text-white/70"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

[class~="text-white/65"] {
  color: rgba(255, 255, 255, 0.65) !important;
}

[class~="bg-white/15"] {
  background: rgba(255, 255, 255, 0.15) !important;
}

[class~="!bg-white/15"] {
  background: rgba(255, 255, 255, 0.15) !important;
}

[class~="bg-white/10"] {
  background: rgba(255, 255, 255, 0.1) !important;
}

[class~="!bg-white/10"] {
  background: rgba(255, 255, 255, 0.1) !important;
}

[class~="border-white/15"] {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[class~="!border-white/15"] {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[class~="border-white/10"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[class~="!border-white/10"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[class~="!text-white"] {
  color: #fff !important;
}

.hero-panel h1,
.hero-panel h2,
.hero-panel p,
.dashboard-banner h1,
.dashboard-banner h2,
.dashboard-banner p,
.auth-panel h1,
.auth-panel h2,
.auth-panel p {
  text-shadow: 0 6px 18px rgba(7, 18, 38, 0.2);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 0.95rem;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  box-shadow: 0 18px 28px rgba(18, 60, 115, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(18, 60, 115, 0.24);
}

.btn-secondary {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 60, 115, 0.18);
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 60, 115, 0.28);
  box-shadow: var(--shadow-soft);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #c43d3d 0%, var(--color-danger) 100%);
}

.btn-ghost {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(215, 226, 238, 1);
}

.badge-soft,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-soft {
  background: rgba(18, 60, 115, 0.08);
  color: var(--color-primary);
}

.status-success {
  color: var(--color-success);
  background: rgba(21, 128, 61, 0.12);
}

.status-warning {
  color: var(--color-warning);
  background: rgba(217, 119, 6, 0.14);
}

.status-danger {
  color: var(--color-danger);
  background: rgba(220, 38, 38, 0.12);
}

.metric-value {
  color: var(--color-primary-deep);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  box-shadow: 0 14px 24px rgba(18, 60, 115, 0.18);
}

.icon-tile-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1d9e93 100%);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.2);
}

.feature-card {
  height: 100%;
  padding: 1.75rem;
}

.feature-card::after,
.quick-link-card::after,
.mini-stat::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 60, 115, 0.08), transparent 70%);
  pointer-events: none;
}

.quick-link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
}

.quick-link-card:hover {
  border-color: rgba(18, 60, 115, 0.18);
  box-shadow: var(--shadow-soft);
}

.timeline-item {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(215, 226, 238, 0.8);
}

.timeline-item + .timeline-item {
  margin-top: 0.9rem;
}

.timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  flex-shrink: 0;
}

.mini-stat {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.82);
  padding: 1.1rem 1.15rem;
}

.kpi-strip {
  display: grid;
  gap: 1rem;
}

.progress-track {
  width: 100%;
  height: 0.7rem;
  border-radius: 999px;
  background: #dbe6f2;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.table-shell {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.table-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(18, 60, 115, 0.5), rgba(15, 118, 110, 0.3), transparent);
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
}

.table-clean thead {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.02));
}

.table-clean th {
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6b81;
}

.table-clean td {
  padding: 1rem 1.15rem;
  border-top: 1px solid rgba(215, 226, 238, 0.85);
  vertical-align: top;
  color: var(--color-text);
}

.table-clean tbody tr:nth-child(even) {
  background: rgba(248, 251, 253, 0.78);
}

.table-clean tbody tr:hover {
  background: rgba(18, 60, 115, 0.05);
}

.mobile-report-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
}

.empty-state-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px dashed rgba(18, 60, 115, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 252, 0.92));
}

.empty-state-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(30, 90, 168, 0.09), transparent 24%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.08), transparent 28%);
  pointer-events: none;
}

.empty-state-card > * {
  position: relative;
  z-index: 1;
}

.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto;
  border-radius: 1.3rem;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(18, 60, 115, 0.1), rgba(15, 118, 110, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.agenda-sidebar {
  position: sticky;
  top: 6.5rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.modal-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 38rem;
  margin: 2rem 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.modal-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(18, 60, 115, 0.45), rgba(15, 118, 110, 0.28), transparent);
}

.modal-panel > * {
  position: relative;
  z-index: 1;
}

.info-strip {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(18, 60, 115, 0.08);
  background: linear-gradient(135deg, rgba(18, 60, 115, 0.05) 0%, rgba(15, 118, 110, 0.07) 100%);
}

.info-strip::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(30, 90, 168, 0.18), transparent 65%);
}

.auth-shell {
  min-height: calc(100vh - 7rem);
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: 2rem;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(8, 33, 66, 0.96) 0%, rgba(18, 60, 115, 0.92) 55%, rgba(15, 118, 110, 0.78) 100%),
    url("../images/background.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 60px rgba(18, 60, 115, 0.22);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.auth-hero > * {
  position: relative;
  z-index: 1;
}

.auth-form-card {
  padding: 2rem;
  border-radius: 2rem;
}

.form-label {
  margin-bottom: 0.55rem;
  color: var(--color-primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-hint {
  margin-top: 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.input-modern,
.select-modern,
.textarea-modern {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94));
  padding: 0.88rem 1rem;
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.input-modern:hover,
.select-modern:hover,
.textarea-modern:hover {
  border-color: rgba(30, 90, 168, 0.28);
}

.input-modern:focus,
.select-modern:focus,
.textarea-modern:focus {
  outline: none;
  border-color: rgba(30, 90, 168, 0.54);
  box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.12);
  background: #fff;
  transform: translateY(-1px);
}

.input-modern::placeholder,
.textarea-modern::placeholder {
  color: #7b8ba1;
}

.input-modern:disabled,
.select-modern:disabled,
.textarea-modern:disabled {
  color: #7b8ba1;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(237, 242, 247, 0.95));
  cursor: not-allowed;
}

.select-modern {
  appearance: none;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23486581' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 1rem center;
  background-size: auto, 1rem;
  padding-right: 2.8rem;
}

.textarea-modern {
  min-height: 7rem;
  resize: vertical;
}

.alert-soft {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}

.alert-success {
  background: rgba(21, 128, 61, 0.08);
  border-color: rgba(21, 128, 61, 0.16);
  color: #166534;
}

.alert-soft ul {
  margin: 0.5rem 0 0;
}

.alert-soft li + li {
  margin-top: 0.2rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 226, 238, 0.9);
  background: rgba(248, 251, 253, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(15, 39, 70, 0.06);
}

[class~="rounded-[1.5rem]"][class~="border-white/15"][class~="bg-white/10"] {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[class~="rounded-[1.5rem]"][class~="border-white/15"][class~="bg-white/10"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%);
  pointer-events: none;
}

[class~="rounded-[1.5rem]"][class~="border-white/15"][class~="bg-white/10"] > * {
  position: relative;
  z-index: 1;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.topbar-nav-strip {
  border-top: 1px solid rgba(215, 226, 238, 0.75);
  padding: 0.85rem 0 1rem;
}

.topbar-scroll {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(241, 246, 251, 0.84));
  border: 1px solid rgba(215, 226, 238, 0.72);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.topbar-scroll::-webkit-scrollbar {
  display: none;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.35rem 0.45rem 0.35rem 0.35rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.58);
  color: var(--color-primary-deep);
  min-width: 0;
}

.topbar-brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.9rem;
  background: rgba(18, 60, 115, 0.08);
  padding: 0.4rem;
}

.topbar-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}

.topbar-brand-subtitle {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-link-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.95rem;
  border-radius: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

.nav-link-modern i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.7rem;
  background: rgba(18, 60, 115, 0.06);
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: var(--color-primary);
  background: rgba(18, 60, 115, 0.07);
}

.nav-link-modern.active::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.mobile-nav-link {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  color: var(--color-text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(215, 226, 238, 0.95);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary);
  border-color: rgba(18, 60, 115, 0.2);
  background: rgba(18, 60, 115, 0.06);
}

[class~="btn-ghost"][class~="!px-3"][class~="!py-2"],
[class~="btn-secondary"][class~="!px-3"][class~="!py-2"],
[class~="btn-danger"][class~="!px-3"][class~="!py-2"] {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0 !important;
  border-radius: 0.95rem;
  flex-shrink: 0;
}

[class~="btn-ghost"][class~="!px-3"][class~="!py-2"] i,
[class~="btn-secondary"][class~="!px-3"][class~="!py-2"] i,
[class~="btn-danger"][class~="!px-3"][class~="!py-2"] i {
  font-size: 1rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(215, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.88);
}

.flash-message {
  min-width: 18rem;
  animation: fadeInUp 0.35s ease;
}

.flash-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-lift);
}

.flash-card.success {
  color: #f0fdf4;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.flash-card.danger {
  color: #fff1f2;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.mobile-report-card.text-center,
.mini-stat.text-center {
  border-style: dashed;
  border-color: rgba(18, 60, 115, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 252, 0.92));
}

.mobile-report-card.text-center::after,
.mini-stat.text-center::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-shell {
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(215, 226, 238, 0.95);
  background:
    linear-gradient(135deg, rgba(11, 39, 75, 0.98) 0%, rgba(18, 60, 115, 0.98) 68%, rgba(15, 118, 110, 0.92) 100%),
    url("../images/background.png");
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.92);
}

.footer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 26%);
  pointer-events: none;
}

.footer-shell > * {
  position: relative;
  z-index: 1;
}

.footer-shell a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-shell a:hover {
  color: #fff;
}

.footer-logo {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  background:
    linear-gradient(115deg, rgba(8, 33, 66, 0.95) 0%, rgba(18, 60, 115, 0.92) 60%, rgba(15, 118, 110, 0.74) 100%),
    url("../images/background.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 50px rgba(11, 39, 75, 0.2);
}

.dashboard-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
}

.dashboard-banner > * {
  position: relative;
  z-index: 1;
}

.section-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(18, 60, 115, 0.12), rgba(18, 60, 115, 0.02));
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.animate-fade-in {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::selection {
  background: rgba(18, 60, 115, 0.18);
  color: var(--color-primary-deep);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #edf2f7;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 60, 115, 0.72), rgba(15, 118, 110, 0.72));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(18, 60, 115, 0.92), rgba(15, 118, 110, 0.92));
}

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

  .agenda-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .flash-message {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: 0;
  }

  .flash-card {
    width: 100%;
  }

  .topbar-main {
    padding: 0.9rem 0;
  }

  .topbar-brand {
    padding-right: 0.3rem;
  }

  .content-card,
  .form-card,
  .surface-card {
    border-radius: 1.15rem;
  }
}

@media (max-width: 480px) {
  .topbar-brand-title {
    font-size: 0.98rem;
  }

  .topbar-brand-subtitle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  }
}

@media (min-width: 768px) {
  .kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
