/* ============================================================
   AEGIS — Tutorial Card
   Pinned bottom-right corner, always on top of open windows.
   No full-screen backdrop — the open app is clearly visible.
   ============================================================ */

/* ── Overlay wrapper — no backdrop, just a pin container ───── */
#tut-overlay {
  position: fixed;
  bottom: 48px;        /* sits just above the taskbar */
  right: 14px;
  z-index: 9500;       /* above windows (WindowManager goes ~100-500) */
  pointer-events: none;
  width: 360px;
}

/* ── Card ───────────────────────────────────────────────────── */
.tut-card {
  pointer-events: all;
  width: 360px;
  background: #ece9d8;
  border: 3px solid #0055ea;
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 2px 6px  rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-family: "Tahoma", "Arial", sans-serif;
  font-size: 11px;
  color: #000;
  overflow: hidden;
  /* subtle left accent so it stands out from window chrome */
  border-left: 4px solid #ffd700;
}

/* ── Header — XP titlebar gradient ─────────────────────────── */
.tut-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: linear-gradient(180deg,
    #0997ff 0%, #0666de 8%, #0051d0 20%,
    #0251c0 50%, #0160c8 80%, #0053bf 92%, #0042ab 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  border-bottom: 1px solid #003c8c;
}

.tut-card-icon  { font-size: 16px; flex-shrink: 0; line-height: 1; }
.tut-card-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tut-card-skip {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 10px;
  font-family: "Tahoma", sans-serif;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.12s;
}
.tut-card-skip:hover { background: rgba(255,255,255,0.32); }

/* ── Body ───────────────────────────────────────────────────── */
.tut-card-body {
  padding: 12px 14px;
  background: #fff;
  font-size: 11px;
  line-height: 1.58;
  color: #111;
  max-height: 240px;
  overflow-y: auto;
}
.tut-card-body p          { margin: 0 0 7px 0; }
.tut-card-body p:last-child { margin-bottom: 0; }
.tut-card-body ul         { margin: 5px 0 7px 18px; padding: 0; }
.tut-card-body li         { margin-bottom: 4px; }
.tut-card-body strong     { color: #003c8c; }
.tut-card-body em         { color: #555; font-style: italic; }

/* ── Footer ─────────────────────────────────────────────────── */
.tut-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  background: #ece9d8;
  border-top: 1px solid #b8b4a4;
}

/* Progress */
.tut-card-progress  { display: flex; flex-direction: column; gap: 4px; }
.tut-step-lbl       { font-size: 10px; color: #555; font-weight: bold; }
.tut-dots-row       { display: flex; gap: 4px; align-items: center; }

.tut-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c0baa8;
  border: 1px solid #999;
  transition: all 0.18s;
}
.tut-dot-done   { background: #2d8a2d; border-color: #1c6a1c; }
.tut-dot-active {
  background: #1f4fb8; border-color: #0033a0;
  width: 10px; height: 10px;
  box-shadow: 0 0 5px rgba(31,79,184,0.7);
}

/* Buttons */
.tut-card-btns { display: flex; gap: 5px; align-items: center; }

.tut-btn {
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid #888;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.tut-btn-back {
  background: linear-gradient(180deg, #f5f4ec 0%, #d6d2c2 100%);
  color: #000; border-color: #888;
}
.tut-btn-back:hover { background: linear-gradient(180deg, #fff 0%, #e4e0d0 100%); }

.tut-btn-primary {
  background: linear-gradient(180deg, #4a9cff 0%, #1f5dd0 50%, #0040b0 100%);
  color: #fff; border-color: #003080;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  padding: 4px 16px;
}
.tut-btn-primary:hover { background: linear-gradient(180deg, #5aacff 0%, #2f6de0 50%, #1050c0 100%); }
.tut-btn-primary:active { background: linear-gradient(180deg, #0040b0 0%, #1f5dd0 50%, #4a9cff 100%); }

/* ── Entrance animation ─────────────────────────────────────── */
@keyframes tutCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Start Menu item ────────────────────────────────────────── */
.sm-item-tutorial {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 2px;
}
