/* =====================================================
   SUPERADMIN INDEX – STABLE RESTORED VERSION
   ÅTERSTÄLLD TILL RÄTT LAYOUT
   ===================================================== */
#superadminIndexRoot.sa-index {
  display: flex;
  flex-direction: column;

  min-height: 100vh;

  padding: 18px 36px 26px 36px;
  box-sizing: border-box;

  background: #b30000;
  color: #ffffff;

  overflow: auto;

  position: relative;
}
#superadminIndexRoot.sa-index {
  background: #b30000;
}

/* ================= HEADER ================= */

.sa-index-header {
  text-align: center;
  margin-bottom: 8px;
}

.sa-warning {
  font-weight: 800;
  letter-spacing: 2px;
}

.sa-index-header h1 {
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ================= TOP ROW ================= */

.sa-top-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.sa-box {
  flex: 1;
  background: #ffffff;
  color: #222;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.sa-box strong {
  font-weight: 800;
}

/* ================= STATUS + TIMER ================= */

.sa-status-timer-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 6px 0;
}

.sa-systemstatus {
  position: absolute;
  left: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  border: 2px solid #ffffff;
  min-width: 240px;
  text-align: center;
}

.sa-status-green {
  background: #1f9d3a;
  color: #fff;
}

.sa-status-red {
  background: #7a0000;
  color: #fff;
}

/* ================= TIMER ================= */

.sa-timer-wrapper {
  text-align: center;
}

.sa-timer-big {
  width: 200px;
  height: 95px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 52px;        /* ← större siffror */
  font-weight: 900;
  letter-spacing: 2px;    /* lite mer pondus */

  border-radius: 8px;

  background: #ffd400;
  color: #111;

  border: 3px solid #ffffff;   /* vit ram */
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.sa-time-yellow { background:#ffd400; color:#111; }
.sa-time-orange { background:#ff8c00; color:#fff; }
.sa-time-red    { background:#8b0000; color:#fff; }

/* ================= SESSION CONTROL ================= */

.sa-session-control {
  text-align: center;
  font-size: 12px;
  margin-bottom: 10px;
}

.sa-session-control input {
  width: 60px;            /* var 50px */
  padding: 5px 8px;       /* lite mer luft */
  border-radius: 5px;
  border: 2px solid #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.sa-session-control button {
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 2px solid #ffffff;
  background: #ffd400;        /* samma gul som system */
  color: #111;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.15s ease;
}

.sa-session-control button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ================= MIDDLE ROW ================= */

.sa-middle-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

/* ================= BUTTONS ================= */

.sa-bottom-wrapper {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.sa-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sa-btn {
  width: 220px;
  padding: 8px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.sa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.sa-btn.yellow { background:#ffd400; color:#111; }
.sa-btn.orange { background:#ff8c00; color:#fff; }
.sa-btn.red    { background:#c40000; color:#fff; border:3px solid #fff; }
.sa-btn.dark   { background:#111; color:#fff; }

/* ================= CLOSE BUTTON ================= */

.sa-close {
  position: absolute;
  top: 18px;
  right: 24px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #ffd400;     /* Gul fylld ring */
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 50;
}

/* Själva X:et */
.sa-close span {
  color: #b30000;          /* Rött X */
  font-size: 20px;
  font-weight: 900;
}

/* ================= EMERGENCY ================= */

.sa-emergency-zone {
  position: absolute;
  right: 70px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sa-warning-triangle {
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-bottom: 95px solid #ffffff;
  position: relative;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.sa-warning-triangle::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -63px;
  border-left: 63px solid transparent;
  border-right: 63px solid transparent;
  border-bottom: 110px solid #ffcc00;
  z-index: -1;
}

.sa-emergency-x {
  position: absolute;
  top: 30px;
  left: -28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000);
  border: 3px solid #7a0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.sa-emergency-text {
  margin-top: 14px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
}

.sa-emergency-sub {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.9;
}

.sa-btn.blue,
button.sa-btn.blue {
  background: linear-gradient(180deg, #38bdf8, #2563eb) !important;
  color: #ffffff !important;
  border: 2px solid #bfdbfe !important;
}

.sa-btn.white,
button.sa-btn.white {
  background: linear-gradient(180deg, #ffffff, #e5e7eb) !important;
  color: #111827 !important;
  border: 2px solid #ffffff !important;
}
