/* NewTec-inspired visual layer: technical blue, deep navy and clear white space. */
:root {
  --ink: #0c2c40;
  --muted: #6b7785;
  --paper: #f3f7fa;
  --card: #ffffff;
  --line: #d7e5ee;
  --green: #0076bd;
  --green-dark: #0c2c40;
  --mint: #e6f2f9;
  --lime: #3f99ce;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 48px rgba(12, 44, 64, .1);
  font-family: "Neue Frutiger", Frutiger, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  background:
    linear-gradient(180deg, rgba(230, 242, 249, .9) 0, rgba(243, 247, 250, 0) 340px),
    var(--paper);
}

.topbar {
  height: 82px;
  background: #0c2c40;
  border-bottom: 3px solid #0076bd;
  box-shadow: 0 10px 28px rgba(13, 13, 32, .16);
}

.brand-mark {
  width: 29px;
  height: 29px;
  padding: 0;
  border-radius: 2px;
  background: #0076bd;
  transform: skewX(-7deg);
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.08em;
}

.brand strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.brand small { color: #80bbde; opacity: 1; }
.tabs { border-radius: 2px; background: rgba(0, 118, 189, .15); }
.tab { border-radius: 1px; }
.tab.active { color: #0c2c40; box-shadow: inset 0 -2px #0076bd; }

h1, h2 { font-family: "Neue Frutiger", Frutiger, "Segoe UI", Arial, sans-serif; }
h1 { font-weight: 620; letter-spacing: -.035em; }
h2 { font-weight: 650; }
.eyebrow { color: #0076bd; letter-spacing: .16em; }
.page-heading h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 14px;
  background: #0076bd;
}

input, select, .button, .segmented, .segmented button { border-radius: 2px; }
.button-primary { background: #0076bd; }
.button-primary:hover { background: #00609a; }
.button-secondary:hover { border-color: #0076bd; color: #00609a; }
input:focus, select:focus { border-color: #0076bd; box-shadow: 0 0 0 3px rgba(0, 118, 189, .12); }

.kpi, .sensor-card, .chart-card, .table-card, .settings-card {
  border-radius: 4px;
  border-color: #d7e5ee;
  box-shadow: 0 8px 24px rgba(12, 44, 64, .055);
}

.kpi { border-top: 3px solid #bfddee; }
.kpi-accent {
  color: white;
  border-color: #0076bd;
  background: linear-gradient(145deg, #0076bd 0%, #033859 100%);
}
.kpi-accent::after { border-color: rgba(128, 187, 222, .2); }

.sensor-card { position: relative; border-top: 3px solid #bfddee; }
.sensor-card:hover { border-top-color: #0076bd; box-shadow: var(--shadow); }
.status { border-radius: 2px; }
.status.online { color: #004c7a; background: #e6f2f9; }
.status.online::before { background: #0076bd; box-shadow: 0 0 0 3px rgba(0, 118, 189, .13); }
.sensor-reading strong { color: #0c2c40; }

.chart-card { border-top: 4px solid #0076bd; }
.chart-empty { border-radius: 2px; background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #f3f7fa 10px, #f3f7fa 20px); }
.dot.max { background: #f59e0b; }
.dot.avg { background: #0076bd; }

.settings-card { border-left: 4px solid #0076bd; }
.toast { border-radius: 2px; background: #0c2c40; border-left: 4px solid #0089db; }

.login-page {
  background:
    linear-gradient(135deg, rgba(0, 118, 189, .22), transparent 42%),
    #0c2c40;
}
.login-page::before {
  opacity: .28;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(0, 118, 189, .32) 62% 64%, transparent 64%),
    radial-gradient(circle at 82% 18%, #0076bd, transparent 25%);
}
.login-card {
  border-radius: 4px;
  border-top: 6px solid #0076bd;
  box-shadow: 0 32px 90px rgba(0, 0, 16, .36);
}
.brand-login small { color: #00609a; }
.login-copy h1 { color: #0c2c40; font-weight: 620; }
.login-foot { color: #80bbde; }

@media (max-width: 1050px) {
  .tabs { background: #0c2c40; border: 1px solid rgba(128, 187, 222, .25); }
}

@media (max-width: 680px) {
  .topbar { height: 72px; }
  .kpi, .sensor-card, .chart-card, .table-card, .settings-card, .login-card { border-radius: 3px; }
}


.chart-empty[hidden] { display: none; }
