﻿/* =========================================================
   NTMS Cloud - Slide-Out Lab Instructions Guide (RHS Drawer)
   Microsoft Fluent 2 / Copilot Aesthetic
========================================================= */

/* FLOATING TRIGGER BUTTON */
.guide-toggle-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9990;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 22px;
  border-radius: 30px;
  font-family: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5), 0 0 0 1px rgba(255,255,255,0.2) inset;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-toggle-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px -6px rgba(79, 70, 229, 0.6);
}

/* OVERLAY BACKDROP */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.guide-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* SLIDE-OUT DRAWER PANEL (RHS) */
.guide-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: -15px 0 45px -10px rgba(15, 23, 42, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e1b4b;
}
.guide-drawer.open {
  right: 0;
}

/* DRAWER HEADER */
.guide-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
}
.guide-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.guide-close-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* DRAWER BODY / STEPS */
.guide-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* STEP CARD */
.guide-step-card {
  background: #ffffff;
  border: 1px solid rgba(200, 210, 235, 0.8);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(100, 110, 160, 0.06);
  transition: transform 0.2s;
}
.guide-step-card:hover {
  transform: translateY(-2px);
  border-color: #818cf8;
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8172fc 0%, #5840d8 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.guide-step-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.guide-step-desc {
  font-size: 0.82rem;
  color: #5b6582;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* CODE / COPY SNIPPET */
.guide-code-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: #0f172a;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.guide-copy-icon {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4338ca;
  flex-shrink: 0;
  margin-left: 8px;
}
.guide-copy-icon:hover {
  background: #e0e7ff;
}

/* HIGHLIGHT CALLOUT */
.guide-highlight {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.5;
}