:root {
  --bg: #020d15;
  --panel: #031421;
  --panel-soft: #061b2b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f8fb;
  --muted: #a8b5c2;
  --blue: #0757a6;
  --blue-bright: #0b77d8;
  --red: #f0263d;
  --green: #34d233;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

body {
  min-width: 0;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 123, 255, 0.08), transparent 28%),
    linear-gradient(90deg, #020a10 0, #020a10 260px, #020f18 260px);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 272px;
  padding: 24px 24px 28px;
  background: linear-gradient(180deg, #03111b 0%, #03131f 48%, #020d15 100%);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(19, 111, 186, 0.12);
  overflow: hidden;
  transition: width 0.25s ease, padding 0.25s ease;
}

.brand {
  padding: 0 8px 22px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-logo span {
  color: #f22535;
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 14px;
  color: #dce5ed;
}

.nav {
  display: grid;
  gap: 8px;
  padding-top: 22px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #8f9ca8;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 38px;
  padding: 8px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e2e8ef;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.nav-link > span:not(.nav-icon):not(.accordion-arrow):not(.submenu-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-panel {
  display: grid;
  gap: 6px;
  margin-top: -2px;
  padding-left: 24px;
}

.accordion-panel[hidden] {
  display: none;
}

.submenu-link {
  min-height: 34px;
  padding-left: 10px;
  font-size: 12px;
}

.submenu-dot {
  display: inline-grid;
  place-items: center;
  width: 7px;
  height: 7px;
  border: 1px solid #b8c4cf;
  border-radius: 50%;
  flex: 0 0 7px;
}

.subsubmenu {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.subsubmenu-link {
  min-height: 30px;
  padding: 6px 8px 6px 18px;
  font-size: 11px;
  color: #c7d1db;
}

.nav-link:hover,
.nav-link.active {
  background: #0d5ca8;
  color: #fff;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon,
.nav-link:hover .submenu-dot,
.nav-link.active .submenu-dot {
  color: #fff;
  border-color: #fff;
}

.accordion-arrow {
  margin-left: auto;
  color: #b8c4cf;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.accordion-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-trigger[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #d9e2eb;
  line-height: 1;
  flex: 0 0 20px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nested {
  padding-left: 18px;
}

.chevron,
.badge {
  margin-left: auto;
}

.nested .chevron:first-child {
  margin-left: 0;
}

.nested .end {
  margin-left: auto;
}

.badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: #aeb9c3;
  font-size: 12px;
}

.powered-by strong {
  display: block;
  color: #f7fbff;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0;
}

.powered-by strong::after {
  content: "";
  display: block;
  width: 57px;
  height: 3px;
  margin-top: 3px;
  background: #02a6ff;
}

.tower-mark {
  color: #02a6ff;
  font-size: 40px;
  line-height: 1;
}

.page {
  flex: 1;
  min-width: 0;
  margin-left: 272px;
  transition: margin-left 0.25s ease;
}

.sidebar-collapsed .sidebar {
  width: 76px;
  padding-right: 14px;
  padding-left: 14px;
  border-right-color: var(--line);
}

.sidebar-collapsed .page {
  margin-left: 76px;
}

.sidebar-collapsed .brand {
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}

.sidebar-collapsed .brand-logo {
  font-size: 26px;
}

.sidebar-collapsed .brand-subtitle,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-link span:not(.nav-icon),
.sidebar-collapsed .accordion-panel,
.sidebar-collapsed .powered-by {
  display: none;
}

.sidebar-collapsed .nav {
  justify-items: center;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  width: 48px;
  height: 44px;
  padding: 0;
  gap: 0;
}

.sidebar-collapsed .nav-icon {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 16px 24px;
  background: #020d15;
  border-bottom: 1px solid var(--line);
}

.menu-button,
.bell-button,
.view-toggle button {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.title-block {
  min-width: 520px;
}

.title-block h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
}

.title-block p {
  margin: 8px 0 0;
  color: #c3ced9;
  font-size: 14px;
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1f5f8;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.meta-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #f4f7fa;
  font-size: 18px;
}

.header-divider {
  width: 2px;
  height: 27px;
  background: rgba(255, 255, 255, 0.18);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 290px);
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  color: #9fabb7;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #95a3af;
}

.view-toggle {
  display: flex;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
}

.view-toggle button {
  padding: 0 15px;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.view-toggle button:first-child {
  border-left: 0;
}

.view-toggle .is-selected {
  background: linear-gradient(180deg, #075eb2, #06478c);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #49df40;
  font-size: 16px;
  font-weight: 800;
}

.live-status span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.bell-button {
  position: relative;
  width: 35px;
  height: 35px;
  padding: 0;
  background: transparent;
  font-size: 20px;
}

.bell-button span {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #71a9ff, #2b63bd);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 700;
}

.user-menu strong,
.user-menu span {
  display: block;
}

.user-menu strong {
  font-size: 13px;
}

.user-menu span {
  color: #b6c2cd;
  font-size: 10px;
}

.content {
  min-height: calc(100vh - 92px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    #020d15;
  background-size: 36px 36px;
}

.dashboard-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15px;
  overflow: auto;
}

.dashboard-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.login-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #050910;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.8fr);
  min-height: calc(100vh - 64px);
  padding: 52px 56px 28px;
  overflow: hidden;
  background-color: #050910;
  background-image:
    linear-gradient(90deg, rgba(5, 9, 16, 0.08) 0%, rgba(5, 9, 16, 0.04) 58%, rgba(5, 9, 16, 0.72) 100%),
    url("images/login-leftbg.png");
  background-position: left center, left center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: radial-gradient(rgba(255, 126, 21, 0.42) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, #000 56%, transparent 73%);
  pointer-events: none;
}

.login-showcase,
.login-panel {
  position: relative;
  z-index: 1;
}

.login-showcase {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  min-height: 720px;
  padding: 110px 36px 28px 170px;
  gap: 200px;
}

.steelops-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.autonect-word {
  position: relative;
  color: #fff;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.autonect-word::after {
  content: "";
  position: absolute;
  left: 126px;
  top: 13px;
  width: 40px;
  height: 32px;
  border-radius: 18px 18px 6px 6px;
  background:
    linear-gradient(0deg, transparent 38%, #fff 39%, #fff 45%, transparent 46%),
    linear-gradient(90deg, #f35b2b, #ff8b13);
}

.steelops-word {
  color: #ff8411;
  font-size: 50px;
  font-weight: 800;
}

.showcase-content h1 {
  margin: 0;
  color: #f2f5f8;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
}

.showcase-content h1::after {
  content: "";
  display: block;
  width: 760px;
  max-width: 90%;
  height: 1px;
  margin: 30px 0 22px;
  background: linear-gradient(90deg, #ff8613, rgba(255, 134, 19, 0));
}

.capability-row {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #c9d0d9;
  font-size: 13px;
  text-transform: uppercase;
}

.capability-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.capability-row svg,
.insight-item svg,
.login-form svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plant-scene {
  display: none;
}

.factory-base {
  position: absolute;
  left: 0;
  right: 8%;
  bottom: 38px;
  height: 96px;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 157, 50, 0.25) 43px 45px),
    linear-gradient(180deg, #21160d, #07080b);
  border-top: 1px solid rgba(255, 157, 50, 0.45);
  box-shadow: 0 -14px 60px rgba(255, 137, 18, 0.2);
}

.factory-tower {
  position: absolute;
  left: 290px;
  bottom: 88px;
  width: 110px;
  height: 290px;
  border: 2px solid rgba(255, 166, 61, 0.42);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 170, 74, 0.38) 39px 41px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 170, 74, 0.28) 35px 37px),
    rgba(13, 14, 18, 0.75);
  box-shadow: 0 0 42px rgba(255, 135, 18, 0.28);
}

.factory-tower::before,
.factory-tower::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 47%, rgba(255, 170, 74, 0.6) 48%, rgba(255, 170, 74, 0.6) 50%, transparent 51%),
    linear-gradient(-32deg, transparent 47%, rgba(255, 170, 74, 0.42) 48%, rgba(255, 170, 74, 0.42) 50%, transparent 51%);
}

.chimney {
  position: absolute;
  bottom: 78px;
  width: 38px;
  background: linear-gradient(90deg, #11141a, #312112, #08090d);
  border: 1px solid rgba(255, 146, 35, 0.24);
}

.chimney-one {
  left: 130px;
  height: 385px;
}

.chimney-two {
  right: 155px;
  height: 225px;
}

.smoke {
  position: absolute;
  left: 20px;
  top: 78px;
  width: 220px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(195, 124, 62, 0.46), rgba(89, 62, 39, 0.2) 62%, transparent 70%);
  filter: blur(10px);
  transform: rotate(12deg);
}

.conveyor {
  position: absolute;
  left: 445px;
  bottom: 158px;
  width: 435px;
  height: 22px;
  background: linear-gradient(90deg, rgba(255, 157, 49, 0.85), rgba(255, 170, 72, 0.1));
  transform: rotate(-13deg);
  transform-origin: left center;
  box-shadow: 0 0 22px rgba(255, 151, 29, 0.35);
}

.plant-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 78%, #fff 0 1px, #ff991e 2px, transparent 7px),
    radial-gradient(circle at 35% 42%, #fff 0 1px, #ff991e 2px, transparent 7px),
    radial-gradient(circle at 47% 67%, #fff 0 1px, #ff991e 2px, transparent 8px),
    radial-gradient(circle at 78% 57%, #fff 0 1px, #ff991e 2px, transparent 7px);
}

.insight-strip {
  display: flex;
  gap: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  color: #e9edf2;
}

.insight-item + .insight-item {
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.insight-item svg {
  width: 38px;
  height: 38px;
  color: #ff870f;
  stroke-width: 1.6;
  flex: 0 0 38px;
}

.insight-item strong,
.insight-item span {
  display: block;
}

.insight-item strong {
  font-size: 15px;
}

.insight-item span {
  margin-top: 4px;
  color: #b9c0ca;
  font-size: 14px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 28px;
}

.login-card {
  width: min(100%, 520px);
  padding: 44px 44px 30px;
  border: 1px solid rgba(154, 168, 188, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(17, 22, 34, 0.92), rgba(12, 16, 25, 0.92)),
    rgba(8, 12, 19, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sks-card-logo {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sks-card-logo span {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  color: #fff;
  font-size: 92px;
  line-height: 1;
  font-weight: 800;
  font-style: italic;
  text-shadow: 10px -10px 0 rgba(255, 117, 19, 0.95);
}

.sks-card-logo strong {
  font-size: 16px;
  color: #f7f9fb;
}

.login-form {
  padding-top: 22px;
}

.form-heading {
  margin-bottom: 22px;
  text-align: center;
}

.form-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.form-heading h2 span {
  color: #ff870f;
  font-weight: 700;
}

.form-heading p {
  margin: 8px 0 0;
  color: #aab3c0;
  font-size: 13px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #f2f4f7;
  font-size: 14px;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(157, 170, 191, 0.24);
  border-radius: 7px;
  background: rgba(17, 22, 34, 0.72);
  color: #d8dee7;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.input-shell input::placeholder {
  color: #8d96a5;
}

.input-shell button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: #d8dee7;
  background: transparent;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 26px;
  font-size: 13px;
}

.form-options label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eef2f6;
}

.form-options input {
  width: 18px;
  height: 18px;
  accent-color: #ff870f;
}

.form-options a,
.card-footer strong {
  color: #ff870f;
  text-decoration: none;
}

.login-submit,
.sso-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.login-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #ff740d, #ff9b09);
  box-shadow: 0 14px 28px rgba(255, 119, 13, 0.2);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: #a6afbb;
  font-size: 13px;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.sso-button {
  border: 1px solid rgba(157, 170, 191, 0.24);
  color: #f2f5f8;
  background: rgba(17, 22, 34, 0.72);
}

.card-footer {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding-top: 32px;
  font-size: 12px;
}

.powered-login {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #eef3f7;
}

.powered-login span {
  color: #d9dee5;
}

.powered-login b {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.powered-login em {
  color: #2da7ff;
  font-style: normal;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #060a10;
  color: #9fa8b4;
  font-size: 13px;
}

.login-footer nav {
  display: flex;
  gap: 28px;
}

.login-footer a {
  color: #b8c0ca;
  text-decoration: none;
}
