/* Travianer Admin Quest-Panel (slide-in left side of the game)
 * Visible only when the logged-in user has role=admin.
 * Embeds the existing /admin-quests/ page in an iframe so the full editor
 * (NPCs, quests, custom items) works without a context switch. */

#aq-ingame-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(640px, 92vw);
  z-index: 1500;
  background: linear-gradient(180deg, #261a12 0%, #14100a 100%);
  border-right: 2px solid #8a6a3a;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.6);
  transform: translateX(-100%);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
}
#aq-ingame-panel.open { transform: translateX(0); }

#aq-ingame-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #5a4226;
  background: #3a2a1c;
}
#aq-ingame-panel header h2 {
  margin: 0;
  font-family: "Bebas Neue", "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: #f5d99a;
}
#aq-ingame-panel header .aq-ig-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
#aq-ingame-panel header button {
  background: #1a1208;
  color: #f1e0bd;
  border: 1px solid #8a6a3a;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.5px;
}
#aq-ingame-panel header button:hover { background: #5a4226; }

#aq-ingame-panel-frame {
  flex: 1 1 auto;
  border: 0;
  width: 100%;
  background: #1a1410;
}

/* Backdrop that closes the panel when clicked */
#aq-ingame-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
#aq-ingame-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
