:root {
  --ml-font-sans: "Josefin Sans", "Segoe UI", Arial, sans-serif;
  --ml-font-body: "Josefin Sans", "Segoe UI", Arial, sans-serif;
  --ml-brand-navy: #0a2240;
  --ml-brand-blue: #0d6efd;
  --ml-brand-cyan: #22c1dc;
  --ml-brand-soft: #eef5ff;
  --ml-surface: rgba(255, 255, 255, 0.92);
  --ml-surface-strong: #ffffff;
  --ml-text-main: #132238;
  --ml-text-soft: #5d6b82;
  --ml-border-soft: rgba(10, 34, 64, 0.09);
  --ml-shadow-soft: 0 18px 45px rgba(10, 34, 64, 0.12);
  --ml-shadow-card: 0 14px 32px rgba(10, 34, 64, 0.1);
  --bs-primary: #0d6efd;
  --bs-body-font-family: "Josefin Sans", "Segoe UI", Arial, sans-serif;
  --bs-body-color: #132238;
  --bs-body-bg: #eef5ff;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea,
.btn,
.card,
.table,
.sidebar,
.topbar,
.navbar,
.modal,
.dropdown-menu {
  font-family: var(--ml-font-body) !important;
}

body {
  color: var(--ml-text-main);
  background: radial-gradient(circle at top left, rgba(34, 193, 220, 0.12), transparent 25%), linear-gradient(135deg, #f4f8ff 0%, #eef5ff 45%, #f9fbff 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-heading {
  font-family: var(--ml-font-sans) !important;
  letter-spacing: 0.01em;
}

a {
  color: var(--ml-brand-blue);
}

.ml-glass,
.ml-card,
.analytics-card,
.chart-box,
.feature-card,
.guide-section,
.guide-step,
.health-card,
.card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border-soft);
  box-shadow: var(--ml-shadow-card);
}

.ml-page-shell {
  min-height: 100vh;
  position: relative;
}

.ml-hero-band,
.ml-dashboard-band {
  background: linear-gradient(135deg, rgba(10, 34, 64, 0.98), rgba(13, 110, 253, 0.84));
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(10, 34, 64, 0.22);
}

.ml-soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ml-section-title {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.1;
}

.ml-section-copy {
  color: var(--ml-text-soft);
  font-size: 1.02rem;
}

.ml-btn-primary,
.btn-primary,
button,
button.btn {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--ml-brand-blue), var(--ml-brand-cyan));
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.18);
}

.ml-btn-outline,
.btn-outline-light,
.btn-outline-primary {
  border-radius: 999px;
}

.sidebar,
.sidebar-modern {
  background: linear-gradient(180deg, #081a34 0%, #0a2240 48%, #12356b 100%);
  box-shadow: 10px 0 35px rgba(10, 34, 64, 0.2);
}

.sidebar a,
.sidebar-modern a {
  border: 1px solid transparent;
}

.sidebar a:hover,
.sidebar-modern a:hover,
.sidebar a.is-active,
.sidebar-modern a.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

.topbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
}

.table,
table {
  border-radius: 20px;
  overflow: hidden;
}

.table thead th,
table thead th {
  background: linear-gradient(135deg, var(--ml-brand-navy), #13458d);
  color: #fff;
  border-bottom: none;
}

.form-control,
.form-select,
input,
select,
textarea {
  border-radius: 14px;
  border: 1px solid rgba(10, 34, 64, 0.12);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.ml-kpi {
  border-radius: 22px;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.92));
  border: 1px solid rgba(10, 34, 64, 0.08);
  box-shadow: var(--ml-shadow-card);
}

.ml-kpi .value {
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 700;
  color: var(--ml-brand-navy);
}

.ml-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 34, 64, 0.08);
  border-radius: 24px;
  box-shadow: var(--ml-shadow-card);
}

.ml-muted {
  color: var(--ml-text-soft) !important;
}

.ml-noindex-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991.98px) {
  .ml-dashboard-band,
  .ml-hero-band {
    border-radius: 22px;
  }
}
