@charset "UTF-8";
/* Hallmark · IEEE / Lab Editorial Workbench Design System
 * Theme: warm-paper editorial teal & botanical slate
 * Palette based on https://ieee.hint-lab.id/
 */

:root {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #24372e;
  background: #f6f7f4;
  font-synthesis: none;
  --green: #204f3e;
  --green-dark: #173b30;
  --green-light: #eaf0e7;
  --text: #24372e;
  --muted: #778078;
  --line: #e3e7df;
  --paper: #ffffff;
  --amber: #be9955;
  --amber-light: #faf4e8;
  --danger: #b91c1c;
  --danger-light: #fef2f2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background-color: #f6f7f4;
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; color: inherit; background: transparent; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Focus styles */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #a47a32;
  outline-offset: 3px;
}

/* ========================================================
   Sidebar
   ======================================================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  width: fit-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 11px 11px 11px 2px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(23, 59, 48, 0.2);
}

.brand-mark > span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #c7d2a6;
  border-radius: 50%;
  top: 7px;
  right: 7px;
}

.brand-name {
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 700;
  color: var(--green-dark);
}

.brand-name > span {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 2.8px;
  margin-top: 5px;
  color: #81877f;
}

.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #94998f;
  padding: 36px 12px 12px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  min-height: 44px;
  font-size: 12px;
  color: #727b72;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.18s, color 0.18s;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: #f3f5f0;
  color: var(--green);
}

.nav-item.active {
  background: var(--green-light);
  color: var(--green);
}

.nav-count {
  margin-left: auto;
  font-family: Consolas, monospace;
  font-size: 10px;
  color: #7c8578;
  background: #fff;
  border: 1px solid #dfe3db;
  padding: 1px 5px;
  border-radius: 10px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.device-summary {
  background: #f7f8f4;
  border: 1px solid #e8ebe3;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.device-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-heading .icon {
  width: 22px;
  height: 22px;
  color: #5a6e5c;
}

.device-heading > span {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text);
}

.device-heading > span > span {
  display: block;
  font-size: 9.5px;
  color: #838a7e;
  font-weight: 400;
  margin-top: 3px;
}

.connection-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #777e73;
  margin-top: 12px;
}

.device-summary p {
  font-size: 9.5px;
  line-height: 1.6;
  color: #969b91;
  margin: 6px 0 0;
}

.school-signature {
  margin: 16px 4px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.school-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #dfe4d9;
  background: #fafbf8;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: var(--green);
}

.school-signature > span:last-child {
  font-size: 10.5px;
  font-weight: 600;
}

.school-signature > span:last-child > span {
  display: block;
  font-size: 8.5px;
  color: #8d9388;
  font-weight: 400;
  margin-top: 3px;
}

/* ========================================================
   Workspace & Topbar
   ======================================================== */
.workspace {
  margin-left: 240px;
}

.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
}

.breadcrumb-root { color: #92998e; }
.breadcrumb-separator { color: #b0b6a9; font-size: 10px; }
#page-label { font-weight: 600; color: var(--text); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.simulation-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #886837;
  font-size: 10.5px;
  background: var(--amber-light);
  border: 1px solid #eee4ce;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a9271;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.amber { background: var(--amber); }
.status-dot.neutral { background: #b3b9ac; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 600;
  min-height: 38px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s;
}

.button .icon { width: 14px; height: 14px; }
.button.secondary { background: #fff; border: 1px solid #dce2d5; color: var(--text); }
.button.secondary:hover { background: #eef1e9; }
.button.primary { background: var(--green); color: white; border: 1px solid var(--green); }
.button.primary:hover { background: var(--green-dark); }

/* ========================================================
   Main Content Layout
   ======================================================== */
main {
  padding: 30px 38px 40px;
  max-width: 1530px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}

/* ========================================================
   Multi-Page Tab Views (Isolasi Antar Menu)
   ======================================================== */
.page-view {
  display: none !important;
  opacity: 0;
}

.page-view.active {
  display: block !important;
  opacity: 1;
  animation: pageViewFadeIn 0.22s ease-out;
}

@keyframes pageViewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 4px 0 28px;
}

.eyebrow {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #737e6b;
  font-size: 9.5px;
  letter-spacing: 1.6px;
  font-weight: 700;
}

.eyebrow > span:first-child {
  height: 5px;
  width: 5px;
  background: #809574;
  flex-shrink: 0;
  display: inline-block;
}

h1 {
  margin: 8px 0 6px;
  font-size: 38px;
  letter-spacing: -1.6px;
  font-weight: 650;
  line-height: 1.15;
}

.heading-period { color: #7d9770; }
.page-intro p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #81877e; }
.intro-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}

.section-heading h2 {
  font-size: 13.5px;
  letter-spacing: -0.15px;
  font-weight: 650;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.section-count {
  font-family: Consolas, monospace;
  font-size: 9.5px;
  font-weight: 400;
  border: 1px solid #e0e5d9;
  padding: 2px 5px;
  border-radius: 4px;
  color: #8b9484;
  background: #fff;
}

.update-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #889080;
  font-size: 9.5px;
}

/* ========================================================
   Sensor & Telemetry Cards (Grid 4)
   ======================================================== */
.sensor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sensor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 18px 14px;
  position: relative;
  overflow: hidden;
  --chart: #9baf8c;
}

.sensor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sensor-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #6e796b;
  white-space: nowrap;
  font-weight: 600;
}

.sensor-name .icon {
  width: 15px;
  height: 15px;
  color: var(--chart);
}

.sensor-source {
  font-family: Consolas, monospace;
  color: #98a18e;
  font-size: 7.5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.sensor-reading {
  margin: 14px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -1.4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.sensor-unit {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: #939c88;
}

.sensor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.sensor-footer > span {
  font-size: 9.5px;
  color: #959d8e;
  white-space: nowrap;
}

.sparkline {
  width: 75px;
  height: 26px;
  overflow: visible;
  flex-shrink: 1;
}

.sparkline polyline {
  stroke: var(--chart);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sensor-card.orange { --chart: #c4a175; }
.sensor-card.green  { --chart: #91a383; }
.sensor-card.teal   { --chart: #83aaa0; }
.sensor-card.blue   { --chart: #87a8bf; }

.water-track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: #eff5f1;
}

.water-track > span {
  display: block;
  height: 100%;
  background: #91b2a6;
  transition: width 0.4s;
}

/* ========================================================
   Control Panels (LCD, Relay Circuit, VL53L0X Gauge)
   ======================================================== */
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  min-width: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.panel h3 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-heading p {
  font-size: 9.5px;
  color: #919886;
  margin: 4px 0 0;
}

.component-tag {
  font-family: Consolas, monospace;
  font-size: 8.5px;
  color: #8b947f;
  border: 1px solid #e5e8df;
  background: #fafbf7;
  border-radius: 4px;
  padding: 3px 6px;
}

/* Authentic Green LCD Character Screen */
.lcd-housing {
  background: #496050;
  border: 1px solid #3d5343;
  border-radius: 6px;
  margin: 18px 0 16px;
  padding: 16px 20px;
  position: relative;
}

.lcd-screen {
  background: #c5d9a2;
  border: 4px solid #25372e;
  border-radius: 3px;
  padding: 10px 12px;
  box-shadow: inset 0 2px 4px rgba(40, 64, 18, 0.25);
}

.lcd-screen > div {
  color: #374c2d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  white-space: pre;
  font-weight: 700;
}

.lcd-screw {
  height: 5px;
  width: 5px;
  border: 1px solid #253d2c;
  border-radius: 50%;
  background: #b8c4a4;
  position: absolute;
}
.screw-one   { left: 7px; top: 7px; }
.screw-two   { right: 7px; top: 7px; }
.screw-three { left: 7px; bottom: 7px; }
.screw-four  { right: 7px; bottom: 7px; }

/* Switch Button */
.switch {
  height: 24px;
  width: 44px;
  background: #e2e7dc;
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid #dce2d3;
  border-radius: 20px;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

.switch > span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(52, 67, 37, 0.2);
  transition: transform 0.2s;
}

.switch[aria-checked="true"] {
  background: var(--green);
  border-color: var(--green);
}

.switch[aria-checked="true"] > span {
  transform: translateX(19px);
}

/* Relay Circuit Schematic */
.relay-channels { margin-top: 18px; }
.relay-channel + .relay-channel {
  border-top: 1px solid #edf0e7;
  padding-top: 14px;
  margin-top: 12px;
}

.relay-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.relay-number {
  height: 32px;
  width: 32px;
  border: 1px solid #dfe5d6;
  display: grid;
  place-items: center;
  font-family: Consolas, monospace;
  font-size: 10px;
  color: #7d8c6c;
  border-radius: 5px;
  background: #f5f7f1;
}

.relay-name { flex-grow: 1; }
.relay-name h4 { font-size: 11.5px; font-weight: 600; margin: 0 0 3px; }
.relay-name > span { font-size: 9.5px; color: #929b85; }

.relay-circuit {
  display: flex;
  align-items: center;
  padding-left: 3px;
  margin-top: 10px;
  color: #bec7b3;
  transition: color 0.2s;
}

.circuit-node { height: 5px; width: 5px; border: 1px solid currentColor; border-radius: 50%; }
.circuit-line { flex: 1; height: 1px; background: currentColor; }
.relay-circuit > svg { width: 50px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact { transform-origin: 8px 15px; transition: transform 0.2s; }
.relay-code { font-family: Consolas, monospace; font-size: 8.5px; margin-left: 12px; }
.relay-circuit.connected { color: #5c8e6b; }
.relay-circuit.connected .contact { transform: rotate(18deg); }

/* VL53L0X Distance Servo Gauge */
.servo-stage {
  position: relative;
  height: 155px;
  padding-top: 6px;
}

.servo-gauge {
  display: block;
  width: 100%;
  height: 125px;
  overflow: visible;
}

.gauge-arc { stroke: #eef1e7; stroke-width: 14; fill: none; }
.gauge-ticks { stroke: #b2bda4; stroke-width: 1; }
.servo-gauge text { font-family: Consolas, monospace; fill: #9da88c; font-size: 9px; }
.servo-needle { fill: var(--green); transition: transform 0.3s ease-out; }
.needle-cap { fill: #c9d6b9; }

.servo-readout {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.9px;
  gap: 2px;
}

.servo-readout > span:nth-child(2) { color: #99a087; font-size: 18px; font-weight: 400; }
.servo-readout > small { font-size: 9.5px; color: #8b967c; margin-left: 8px; }

/* ========================================================
   Pipeline Inspection Workbench Section
   ======================================================== */
.workbench-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  margin-top: 24px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.step-card {
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.step-header {
  padding: 10px 14px;
  background: #f1f4ed;
  font-size: 11.5px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.step-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #1e2822;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-img-placeholder {
  color: #7d8b80;
  font-size: 11px;
  font-family: Consolas, monospace;
}

/* Verdict Result Box */
.verdict-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8faf6;
  border: 1px solid var(--line);
}

.verdict-box.granted {
  background: var(--green-light);
  border-color: #c9dac3;
}

.verdict-box.denied {
  background: var(--danger-light);
  border-color: #fecaca;
}

/* ========================================================
   Tables (Users & Activity Logs)
   ======================================================== */
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 20px;
}

.table-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

th {
  padding: 11px 20px;
  color: #727c6f;
  font-weight: 650;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f7f9f4;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 12px 20px;
  border-bottom: 1px solid #edf1ea;
  color: var(--text);
}

tr:hover td { background: #fafbf8; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  font-family: Consolas, monospace;
  text-transform: uppercase;
}

.badge-success { background: #daf0e1; color: #1c5e39; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #0369a1; }

.code-pill {
  font-family: Consolas, monospace;
  background: #f3f5ee;
  border: 1px solid #e1e6da;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #556350;
}

/* Modal Dialog */
dialog {
  width: min(460px, calc(100% - 32px));
  border: 1px solid #dce3d4;
  border-radius: 12px;
  padding: 26px;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(32, 60, 49, 0.2);
  background: #fff;
}

dialog::backdrop {
  background: rgba(28, 48, 38, 0.4);
  backdrop-filter: blur(2px);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.4px;
}

dialog p {
  font-size: 12px;
  color: #7f8974;
  margin: 6px 0 20px;
  line-height: 1.6;
}

dialog label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}

dialog input[type="text"], dialog input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5dfca;
  border-radius: 6px;
  background: #f8faf5;
  color: var(--green-dark);
  font-size: 12.5px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* ========================================================
   Live Hardware Enrollment Modal Styles
   ======================================================== */
.dialog-inner {
  position: relative;
}

.enroll-step {
  display: none;
  animation: pageViewFadeIn 0.22s ease-out;
}

.enroll-step.active {
  display: block;
}

.close-dialog-btn {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 4px;
}

.enroll-actions-primary {
  margin-top: 18px;
}

.enroll-main-btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.enroll-alt-toggle {
  margin-top: 14px;
  text-align: center;
}

.text-link-btn {
  font-size: 11px;
  color: #727c6f;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  transition: color 0.18s;
  cursor: pointer;
}

.text-link-btn:hover {
  color: var(--green);
}

.manual-upload-box {
  background: #f7f9f4;
  border: 1px dashed #d5dfca;
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  animation: pageViewFadeIn 0.18s ease-out;
}

.user-target-tag {
  display: block;
  font-size: 10.5px;
  color: #7d8579;
  margin-top: 2px;
}

.user-target-tag strong {
  color: var(--green);
}

/* Scanner Guide Card & Radar Animation */
.scanner-guide-card {
  background: #f8faf5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 20px 18px;
  margin-top: 16px;
  text-align: center;
}

.scanner-radar {
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(32, 79, 62, 0.12);
  border: 1.5px solid rgba(32, 79, 62, 0.4);
  animation: pulseRadar 2s infinite ease-out;
}

.radar-pulse.delay {
  animation-delay: 0.9s;
}

@keyframes pulseRadar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hand-icon-box {
  width: 52px;
  height: 52px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(32, 79, 62, 0.25);
}

.scanner-hand-icon {
  width: 26px;
  height: 26px;
}

.scanner-instructions h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-dark);
}

.scanner-instructions p {
  font-size: 11.5px;
  color: #798274;
  margin: 0 auto;
  line-height: 1.55;
  max-width: 360px;
}

.scanner-status-strip {
  margin-top: 18px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-dark);
}

.timer-pill {
  font-family: Consolas, monospace;
  font-size: 10px;
  background: #f1f4ed;
  color: #65705e;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #e1e7db;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 16px 8px;
}

.success-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #daf0e1;
  color: #17653d;
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 6px 18px rgba(23, 101, 61, 0.2);
}

.success-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--green-dark);
}

.success-card p {
  font-size: 11.5px;
  color: #7b8577;
  margin: 0 0 16px;
}

.success-meta-box {
  background: #f8faf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 11px;
  border-bottom: 1px solid #edf1e8;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row span {
  color: #798274;
}

.meta-row strong {
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 5px 22px rgba(36, 55, 46, 0.25);
  z-index: 100;
}

/* Editorial Footer */
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #9ca591;
  font-size: 10px;
  margin: 36px 38px 0;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
}

/* ========================================================
   Login View & Authentication (ieee.hint-lab.id style)
   ======================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6f7f4;
  padding: 24px;
}

.login-layout {
  display: flex;
  gap: 56px;
  max-width: 860px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.login-brand {
  flex: 1;
  max-width: 380px;
}

.brand-mark-lg {
  width: 60px;
  height: 60px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 16px 16px 16px 3px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 22px;
  box-shadow: 0 10px 25px rgba(23, 59, 48, 0.25);
}

.brand-mark-lg > span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #c7d2a6;
  border-radius: 50%;
  top: 9px;
  right: 9px;
}

.login-brand h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-dark);
  margin: 0 0 10px;
}

.login-brand h2 > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #81877f;
  margin-top: 5px;
}

.login-brand p {
  font-size: 12.5px;
  color: #717c6e;
  line-height: 1.7;
  margin: 0;
}

.login-card {
  flex: 0 0 400px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px;
  box-shadow: 0 16px 48px rgba(32, 60, 49, 0.08);
}

.card-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #737e6b;
  margin-bottom: 8px;
}

.login-card h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin: 0 0 6px;
  color: var(--text);
}

.card-sub {
  font-size: 12px;
  color: #81877e;
  margin: 0 0 22px;
  line-height: 1.6;
}

.login-card label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 6px;
}

.login-card input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #d5dfca;
  border-radius: 6px;
  background: #f8faf5;
  font-size: 13px;
  color: var(--green-dark);
  transition: border-color 0.18s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 79, 62, 0.12);
}

.login-submit-btn {
  width: 100%;
  margin-top: 22px;
  min-height: 42px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.login-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.5;
}

.login-footnote {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: #94998f;
  text-align: center;
}

.login-footnote code {
  font-family: Consolas, monospace;
  background: #f3f5ee;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--green);
  font-weight: 600;
}

@media (max-width: 760px) {
  .login-layout {
    flex-direction: column;
    gap: 32px;
  }
  .login-card {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ========================================================
   Hardware Telemetry & Physical Status Banner
   ======================================================== */
.hw-telemetry-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(36, 55, 46, 0.04);
}

.hw-device-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafbf9;
  border: 1px solid #ebefe6;
  border-radius: 7px;
  padding: 10px 14px;
}

.hw-dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hw-dot-indicator.offline {
  background: #9ca3af;
  box-shadow: 0 0 0 2px #e5e7eb;
}

.hw-dot-indicator.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hw-device-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hw-device-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.hw-device-meta {
  font-size: 10px;
  color: #788279;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-badge-status {
  font-family: Consolas, monospace;
  font-size: 8.5px;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hw-badge-status.offline {
  background: #f1f3f0;
  color: #6b7280;
  border: 1px solid #e2e5de;
}

.hw-badge-status.online {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #b7e1cd;
}

.hw-mode-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafbf9;
  border: 1px solid #ebefe6;
  border-radius: 7px;
  padding: 10px 14px;
}

.hw-mode-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hw-mode-label {
  font-size: 9px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #8a9486;
  text-transform: uppercase;
}

.hw-mode-value {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text);
}

.btn-hw-simulate {
  background: #ffffff;
  border: 1px solid #d2d8cb;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-hw-simulate:hover {
  background: #f1f5ee;
  border-color: var(--green);
}

.btn-hw-simulate.active {
  background: #204f3e;
  color: #ffffff;
  border-color: #173b30;
}

.btn-sim-icon {
  font-size: 12px;
}

.hw-pill-status {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hw-pill-status.offline {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.hw-pill-status.online {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.hw-subnotice {
  font-size: 9.5px;
  color: #8b9286;
  margin-top: 4px;
  display: block;
}

@media (max-width: 900px) {
  .hw-telemetry-banner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ========================================================
   User Table: Columns & Elements
   ======================================================== */
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name-title {
  font-weight: 650;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.25;
}

.user-sub-info {
  font-size: 10.5px;
  color: var(--muted);
}

.auth-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 11px;
  font-family: Consolas, monospace;
  color: #166534;
}

.auth-time-badge .dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.time-text {
  font-size: 11px;
  color: var(--muted);
  font-family: Consolas, monospace;
}

/* Tombol Folder Drive */
.btn-drive-folder {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 7px;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.05);
}

.btn-drive-folder:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.15);
}

.btn-drive-folder:active {
  transform: translateY(0);
}

.folder-svg-icon {
  display: flex;
  align-items: center;
  color: #d97706;
}

.folder-svg-icon svg {
  width: 15px;
  height: 15px;
}

.drive-label {
  letter-spacing: 0.01em;
}

.drive-badge-count {
  background: #fde68a;
  color: #78350f;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

/* Action Button Group */
.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: white;
  border: 1px solid var(--line);
  line-height: 1;
}

.btn-action svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.btn-action-view {
  color: #0369a1;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.btn-action-view:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

.btn-action-edit {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}

.btn-action-edit:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.btn-action-delete {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-action-delete:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

/* ========================================================
   Modal: Folder Drive Dataset
   ======================================================== */
.modal-drive {
  max-width: 860px;
  width: 94vw;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  background: white;
}

.drive-modal-inner {
  padding: 24px;
}

.drive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drive-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drive-folder-icon-large {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drive-breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.drive-breadcrumb .sep {
  color: #cbd5e1;
}

.drive-breadcrumb .folder-current {
  font-weight: 600;
  color: #b45309;
  font-family: Consolas, monospace;
}

.drive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.drive-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.drive-meta-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 6px;
  color: #475569;
}

.drive-path-pill {
  font-size: 10.5px;
  font-family: Consolas, monospace;
  background: #f8fafc;
  color: #64748b;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.drive-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* File Explorer Body */
.drive-body {
  min-height: 220px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.drive-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 13px;
}

.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.drive-file-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.drive-file-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.drive-thumb-wrap {
  width: 100%;
  height: 140px;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.drive-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.drive-thumb-wrap:hover .drive-thumb-img {
  transform: scale(1.05);
}

.drive-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: white;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
}

.drive-thumb-wrap:hover .drive-thumb-overlay {
  opacity: 1;
}

.drive-card-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drive-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.03em;
}

.drive-card-name {
  font-size: 12px;
  font-weight: 650;
  color: var(--green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Consolas, monospace;
}

.drive-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
}

.drive-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  background: #f8faf6;
  border-top: 1px solid var(--line);
}

.drive-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.drive-empty-icon {
  font-size: 36px;
}

.drive-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.drive-security-note {
  font-size: 10.5px;
  color: var(--muted);
}

/* ========================================================
   Modal: Lihat Detail Pengguna (View User)
   ======================================================== */
.modal-view-user {
  max-width: 640px;
  width: 92vw;
}

.view-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.view-user-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.view-user-meta-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.view-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-val {
  font-size: 12.5px;
  color: var(--green-dark);
}

.view-user-images-preview h4 {
  font-size: 12px;
  font-weight: 650;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.preview-duo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.preview-item-card .img-box {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item-card .label-bar {
  background: white;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--green-dark);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ========================================================
   Modal: Lightbox Image
   ======================================================== */
.modal-lightbox {
  max-width: 800px;
  width: 90vw;
  background: #0f172a;
  color: white;
  border-radius: 12px;
  padding: 0;
  border: none;
  overflow: hidden;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-filename {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #f1f5f9;
}

.lightbox-image-wrap {
  width: 100%;
  min-height: 320px;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  padding: 12px;
  box-sizing: border-box;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-footer {
  padding: 10px 18px;
  background: #1e293b;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid #334155;
}

