:root {
  --gold: #d69c2f;
  --gold-soft: #f6d47c;
  --ink: #16140f;
  --paper: #f7f1e7;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Tahoma, Arial, sans-serif;
  background: #0d1117;
  color: #17130d;
}

.home-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 20%, rgba(214,156,47,.12), transparent 36%),
    #0a0d12;
}

.dashboard-wrap {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.dashboard-canvas {
  position: relative;
  width: min(100vw, calc(100vh * 1537 / 1023));
  aspect-ratio: 1537 / 1023;
  overflow: hidden;
  background: #efe8dd;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
}

.dashboard-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  z-index: 5;
  display: block;
  border-radius: 18px;
  outline: 0 solid transparent;
  background: transparent;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease, outline .18s ease;
  text-decoration: none;
}

.hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(255, 214, 112, .08);
  box-shadow: 0 0 0 3px rgba(214,156,47,.45), 0 0 26px rgba(255,195,65,.55);
  transform: translateY(-1px);
}

.hotspot:focus-visible { outline: 2px solid #fff0b8; }

/* Coordinates are percentages of the original 1537×1023 image */
.hs-operations     { left: 5.7%;  top: 28.5%; width: 28.3%; height: 13.7%; }
.hs-training       { left: 64.8%; top: 28.5%; width: 27.8%; height: 13.7%; }
.hs-administration { left: 5.7%;  top: 44.0%; width: 28.3%; height: 13.8%; }
.hs-accounts       { left: 64.8%; top: 44.0%; width: 27.8%; height: 13.8%; }
.hs-planning       { left: 5.7%;  top: 59.8%; width: 28.3%; height: 13.7%; }
.hs-contracts      { left: 64.8%; top: 59.8%; width: 27.8%; height: 13.7%; }
.hs-logistics      { left: 5.7%;  top: 75.5%; width: 28.3%; height: 13.8%; }
.hs-reports        { left: 64.8%; top: 75.5%; width: 27.8%; height: 13.8%; }

.department-page {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(rgba(8,12,18,.82), rgba(8,12,18,.9)),
    url('assets/main-interface.png') center/cover fixed;
  color: #f8f3e9;
}

.department-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid rgba(233,184,77,.36);
  background: rgba(16,18,22,.82);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.brand strong { color: #efc15a; font-size: 1.1rem; }
.brand small { display: block; opacity: .74; margin-top: 4px; }

.back-link {
  color: #17130d;
  background: linear-gradient(135deg, #ffe29a, #d7a13a);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.hero-card {
  margin-top: 24px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 26px;
  border: 1px solid rgba(233,184,77,.38);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,237,225,.94));
  color: #17130d;
  box-shadow: 0 26px 80px rgba(0,0,0,.34);
}

.hero-card .eyebrow { color: #9b6d16; font-weight: 700; }
.hero-card h1 { margin: 10px 0 12px; font-size: clamp(2rem, 5vw, 4rem); }
.hero-card p { font-size: 1.05rem; line-height: 1.9; color: #4b4438; }

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.module-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(19,22,27,.88);
  border: 1px solid rgba(233,184,77,.24);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.module-card h2 { margin: 0 0 10px; color: #efc15a; font-size: 1.1rem; }
.module-card p { margin: 0; color: #d9d4ca; line-height: 1.8; }

@media (max-width: 820px) {
  .department-page { padding: 14px; }
  .modules { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
}

/* =========================
   Operations Department UI
   ========================= */
.operations-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #0b1016;
}

.operations-wrap {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.operations-canvas {
  position: relative;
  height: 100vh;
  width: auto;
  max-width: 100vw;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #d9d2c8;
  box-shadow: 0 22px 85px rgba(0,0,0,.5);
}

.operations-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.op-hotspot,
.operations-home {
  position: absolute;
  z-index: 10;
  display: block;
  text-decoration: none;
  background: transparent;
  border-radius: 20px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.op-hotspot span,
.operations-home span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.op-hotspot:hover,
.op-hotspot:focus-visible,
.operations-home:hover,
.operations-home:focus-visible {
  transform: translateY(-2px);
  background: rgba(224,166,55,.06);
  box-shadow: 0 0 0 3px rgba(221,165,54,.7), 0 0 28px rgba(245,192,76,.55);
  outline: none;
}

/* Clickable cards — percentages of the uploaded 1536×1024 design */
.op-daily-tasks      { left: 15.9%; top: 50.7%; width: 17.0%; height: 21.0%; }
.op-attendance       { left: 33.8%; top: 50.7%; width: 17.0%; height: 21.0%; }
.op-security-reports { left: 51.8%; top: 50.7%; width: 17.0%; height: 21.0%; }
.op-employees        { left: 69.8%; top: 50.7%; width: 17.1%; height: 21.0%; }

.op-admin-orders     { left: 15.9%; top: 72.8%; width: 17.0%; height: 21.4%; }
.op-assets           { left: 33.8%; top: 72.8%; width: 17.0%; height: 21.4%; }
.op-sops             { left: 51.8%; top: 72.8%; width: 17.0%; height: 21.4%; }
.op-contract-eval    { left: 69.8%; top: 72.8%; width: 17.1%; height: 21.4%; }

/* The logo doubles as a discreet Home button */
.operations-home { left: 5.2%; top: 2.2%; width: 14.0%; height: 20.5%; border-radius: 12px; }

.operation-module-page {
  min-height: 100vh;
  padding: 28px;
  color: #f7f3ea;
  background:
    linear-gradient(rgba(6,12,20,.88), rgba(6,12,20,.94)),
    url('assets/operations-interface.png') center / cover fixed;
}

.operation-module-shell { width: min(1080px, 100%); margin: 0 auto; }
.module-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(210,161,62,.42);
  border-radius: 18px;
  background: rgba(10,18,28,.82);
  backdrop-filter: blur(12px);
}
.module-topbar strong { color: #efc45d; font-size: 1.2rem; }
.module-topbar small { display: block; margin-top: 4px; opacity: .76; }
.module-topbar nav { display: flex; flex-wrap: wrap; gap: 10px; }
.module-topbar a {
  text-decoration: none;
  color: #17130d;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7dc94, #c99735);
}
.module-placeholder {
  margin-top: 28px;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 26px;
  text-align: center;
  color: #17130d;
  border: 1px solid rgba(210,161,62,.46);
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(241,234,222,.95));
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.module-kicker { margin: 0; color: #9e741e; font-weight: 800; }
.module-placeholder h1 { margin: 12px 0; font-size: clamp(2rem, 6vw, 4rem); }
.module-placeholder > p:not(.module-kicker) { color: #4e473c; line-height: 1.9; }
.module-status {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 18px;
  border: 1px solid #c89a3b;
  border-radius: 999px;
  color: #795716;
  background: #fff8e7;
  font-weight: 700;
}

@media (max-width: 700px) {
  .operation-module-page { padding: 12px; }
  .module-topbar { align-items: flex-start; flex-direction: column; }
}

.global-back{position:fixed;top:16px;right:16px;z-index:9999;display:flex;align-items:center;gap:8px;padding:11px 16px;border:1px solid #d9a63e;border-radius:14px;background:rgba(5,5,5,.86);color:#f5c65e;text-decoration:none;font-weight:700;font-size:16px;box-shadow:0 6px 24px rgba(0,0,0,.35);backdrop-filter:blur(8px);cursor:pointer}.global-back:hover,.global-back:focus-visible{background:#17120a;outline:none}.global-back .arrow{font-size:21px;line-height:1}@media(max-width:700px){.global-back{top:9px;right:9px;padding:8px 11px;font-size:13px}}
