/* =========================
   主菜单管理员入口
   ========================= */

.admin-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #ff3030;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(185, 15, 15, 0.96),
      rgba(90, 0, 0, 0.96)
    );
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(255, 30, 30, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-login-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 28px rgba(255, 30, 30, 0.38);
}

.admin-login-button.is-logged-in {
  border-color: #28b967;
  background:
    linear-gradient(
      135deg,
      rgba(20, 125, 65, 0.96),
      rgba(5, 66, 32, 0.96)
    );
}


/* =========================
   管理员悬浮工具栏
   ========================= */

.simple-admin-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60000;
  min-width: 310px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #ff3b3b;
  color: #fff;
  background:
    linear-gradient(
      rgba(255, 40, 40, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 40, 40, 0.07) 1px,
      transparent 1px
    ),
    rgba(5, 5, 5, 0.97);
  background-size: 18px 18px;
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(255, 30, 30, 0.16);
}

.simple-admin-bar[hidden] {
  display: none;
}

.simple-admin-indicator {
  flex: 1;
  min-width: 0;
}

.simple-admin-indicator strong {
  display: block;
  color: #ff5151;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.simple-admin-indicator span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.simple-admin-action {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #ff4040;
  color: #fff;
  background: rgba(255, 40, 40, 0.09);
  font-family: monospace;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.simple-admin-action:hover {
  background: #9f0000;
}

.simple-admin-action.admin-save-action {
  border-color: #2fb96d;
  background: rgba(47, 185, 109, 0.11);
}

.simple-admin-action.admin-save-action:hover {
  background: #167341;
}


/*
  页面原有的“登录接口”只是占位按钮，
  现在统一使用主菜单管理员登录，所以隐藏。
*/

#sheet-login-button,
#equipment-login-button {
  display: none !important;
}


/* 管理员状态提示 */

html.simple-admin-enabled
[data-attribute]:not([readonly]),

html.simple-admin-enabled
[data-skill-level]:not([readonly]),

html.simple-admin-enabled
[data-equipment-editable]:not([readonly]) {
  outline-color: rgba(255, 45, 45, 0.55);
}


/* 手机 */

@media (max-width: 620px) {
  .simple-admin-bar {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-width: 0;
    flex-wrap: wrap;
  }

  .simple-admin-indicator {
    width: 100%;
    flex-basis: 100%;
  }
}