:root {
  --bg-main: #f3f6ff;
  --bg-accent: #eef7ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #13223d;
  --text-muted: #60708d;
  --primary: #355cff;
  --primary-dark: #2236a6;
  --border: rgba(124, 146, 188, 0.26);
  --success: #0f9d76;
  --warning: #f0a320;
  --danger: #d9384f;
  --shadow: 0 18px 45px rgba(34, 56, 97, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at -10% -20%, rgba(86, 137, 255, 0.22), transparent 56%),
    radial-gradient(900px 600px at 120% 10%, rgba(173, 100, 255, 0.2), transparent 60%),
    linear-gradient(145deg, #f8fbff 0%, #eef3ff 46%, #f6f4ff 100%);
}

.section {
  padding: clamp(1rem, 1.5vw, 1.5rem) 0;
}

.container {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.columns {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.column {
  flex: 1;
  min-width: 0;
}

.column.is-one-quarter {
  flex: 0 0 305px;
  max-width: 305px;
}

.column.is-half { flex: 0 0 calc(50% - .625rem); max-width: calc(50% - .625rem); }
.column.is-5 { flex: 0 1 500px; }
.columns.is-multiline { flex-wrap: wrap; }
.columns.is-centered { justify-content: center; }

@media (max-width: 1024px) {
  .columns { flex-direction: column; }
  .column.is-one-quarter,
  .column.is-half {
    max-width: 100%;
    flex-basis: auto;
  }
}

.menu {
  position: sticky;
  top: 1rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255,255,255,.95), rgba(245,249,255,.9));
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.menu .app-brand {
  margin: -.15rem 0 .85rem;
  padding: .6rem .75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(53, 92, 255, .14), rgba(138, 82, 255, .12));
  border: 1px solid rgba(66, 104, 255, .16);
}

.menu .app-brand-title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.menu .app-brand-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
}

.menu-label {
  margin: .7rem .5rem;
  color: #6f7f9b;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 700;
}

.menu-list,
.uk-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li + li { margin-top: .3rem; }

.menu-list a {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-radius: 10px;
  padding: .5rem .68rem;
  color: #173263;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  overflow: hidden;
}

.menu-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(58, 87, 173, 0.38);
  flex-shrink: 0;
}

.menu-list a:hover {
  background: rgba(89, 129, 255, .12);
  transform: translateX(1px);
}

.menu-list a.uk-active {
  background: linear-gradient(135deg, rgba(53, 92, 255, .16), rgba(121, 78, 255, .14));
  color: #0f2f76;
}

.uk-nav-divider {
  margin: .75rem .2rem;
  border-top: 1px solid rgba(116, 140, 180, .3);
}

.title {
  margin: 0 0 .55rem;
  font-size: clamp(1.6rem, 2.7vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.title.is-4 { font-size: 1.25rem; }
.title.is-5 { font-size: 1rem; }

.subtitle {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.subtitle.is-3 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: #102f6b;
  font-weight: 700;
}

.subtitle.is-6 {
  font-size: .95rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.has-metric-text {
  color: rgba(255, 255, 255, 0.92);
}

.box,
.overlay,
.chart-box {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 35px rgba(30, 58, 112, 0.11);
  padding: 1.2rem;
}

.has-background-info-light,
.has-background-success-light,
.has-background-warning-light {
  color: #fff;
  border: none;
}

.has-background-info-light {
  background: linear-gradient(135deg, #3f70ff, #2660e5);
}

.has-background-success-light {
  background: linear-gradient(135deg, #12a57b, #0f7c62);
}

.has-background-warning-light {
  background: linear-gradient(135deg, #f2a62e, #de7d19);
}

.has-background-primary-light {
  background: linear-gradient(135deg, #5b6ef5, #4c53cf);
}

.table-container {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(118, 145, 191, .26);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table th,
.table td {
  padding: .75rem .8rem;
  border-bottom: 1px solid rgba(123, 145, 181, .23);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f0f5ff, #ebf2ff);
  color: #244a89;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.table.is-striped tbody tr:nth-child(odd) { background: #f9fbff; }
.table.is-hoverable tbody tr:hover { background: #edf4ff; }

.field { margin-bottom: 1rem; }
.field.has-addons,
.is-grouped { display: flex; gap: .5rem; align-items: center; }
.control.is-expanded { flex: 1; }
.field.is-grouped-centered { justify-content: center; }

.label {
  display: block;
  margin-bottom: .35rem;
  color: #203f75;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.input,
.textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c6d4ee;
  background: #fff;
  color: #13223d;
  padding: .62rem .72rem;
  font-size: .95rem;
}

.input:focus,
.textarea:focus,
select:focus {
  outline: none;
  border-color: #4a6cf2;
  box-shadow: 0 0 0 3px rgba(74, 108, 242, .18);
}

.textarea { min-height: 130px; }

.button {
  border-radius: 12px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: .57rem .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  transition: transform .16s ease, box-shadow .2s ease, opacity .2s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(35, 60, 133, .22); }
.button:active { transform: translateY(0); }
.button.is-fullwidth { width: 100%; }
.button.is-small { font-size: .82rem; padding: .35rem .66rem; border-radius: 10px; }
.button.is-light { background: #edf3ff; color: #284778; border: 1px solid #d2dff8; }
.button.is-warning { background: linear-gradient(135deg, #ffbb45, #f58f18); color: #2f2206; }
.button.is-danger { background: linear-gradient(135deg, #ff5f79, #ce2e4f); }
.button.is-link { background: linear-gradient(135deg, #3c82ff, #2c56d7); }
.button.is-rounded { border-radius: 999px; }

.notification {
  margin-bottom: 1rem;
  padding: .8rem .95rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.notification.is-success { background: #ecfcf5; border-color: #a9efcd; color: #137a57; }
.notification.is-danger { background: #fff0f3; border-color: #ffc2cc; color: #a51f3f; }
.notification.is-warning { background: #fff9ea; border-color: #ffd989; color: #925a05; }
.notification.is-info { background: #edf5ff; border-color: #bfddff; color: #1b56af; }

.tag {
  display: inline-block;
  padding: .26rem .56rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
}
.tag.is-success { background: #e8faef; color: #0d7f5b; }
.tag.is-warning { background: #fff5da; color: #975b03; }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hero-body { width: 100%; }

.overlay {
  max-width: 540px;
  margin: 0 auto;
  padding: 1.8rem;
  background: linear-gradient(165deg, rgba(255,255,255,.92), rgba(249, 251, 255, .9));
}

.has-text-centered { text-align: center; }

.login-logo {
  max-width: 92px;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(32, 58, 122, .25);
  margin-bottom: .8rem;
}

.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: .5rem; }
.mt-5 { margin-top: 1.5rem; }

hr {
  border: 0;
  border-top: 1px solid rgba(124, 146, 188, 0.3);
  margin: 1.2rem 0;
}

code {
  background: #eef3ff;
  color: #2d4f92;
  border-radius: 8px;
  padding: .08rem .35rem;
}

.has-text-danger { color: #b4233a !important; }


.page-header {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, rgba(53,92,255,.14), rgba(160,94,255,.12));
  box-shadow: 0 10px 30px rgba(32,58,122,.10);
}

.page-header .title { margin-bottom: .35rem; }
.page-header .subtitle { margin-bottom: 0; color: #34527f; }

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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