/* Quick Login dev panel — scoped under .ohga-quick-login to avoid colliding
 * with the LMS Vue app's styles. All visual choices mirror Quantum Forge's
 * original panel (purple→blue gradient toggle, dark header, light cards). */

.ohga-quick-login {
  --oql-z: 9999;
  --oql-bg-panel: #ffffff;
  --oql-bg-card: #f8fafc;
  --oql-border: #e5e7eb;
  --oql-text: #111827;
  --oql-text-muted: #6b7280;
  --oql-gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.ohga-quick-login *,
.ohga-quick-login *::before,
.ohga-quick-login *::after {
  box-sizing: border-box;
}

.ohga-quick-login .oql-toggle {
  position: fixed;
  right: 16px;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oql-gradient);
  border: none;
  color: white;
  cursor: pointer;
  z-index: var(--oql-z);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  animation: oql-pulse 2s ease-in-out infinite;
}

@keyframes oql-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.08); }
}

.ohga-quick-login .oql-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--oql-z) - 1);
}
.ohga-quick-login.oql-open .oql-backdrop { display: block; }

.ohga-quick-login .oql-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--oql-bg-panel);
  z-index: var(--oql-z);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  color: var(--oql-text);
}
.ohga-quick-login.oql-open .oql-panel { transform: translateX(0); }

.ohga-quick-login .oql-header {
  background: var(--oql-gradient);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ohga-quick-login .oql-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.ohga-quick-login .oql-subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
.ohga-quick-login .oql-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.ohga-quick-login .oql-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ohga-quick-login .oql-msg {
  padding: 24px;
  text-align: center;
  color: var(--oql-text-muted);
}
.ohga-quick-login .oql-msg-error { color: #b91c1c; }

.ohga-quick-login .oql-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--oql-bg-card);
  border: 1px solid var(--oql-border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  align-items: flex-start;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, transform 0.05s;
}
.ohga-quick-login .oql-card:hover { border-color: #7c3aed; }
.ohga-quick-login .oql-card:active { transform: scale(0.99); }
.ohga-quick-login .oql-card-busy { opacity: 0.6; pointer-events: none; }
.ohga-quick-login .oql-card-error { border-color: #ef4444; }

.ohga-quick-login .oql-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ohga-quick-login .oql-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.ohga-quick-login .oql-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ohga-quick-login .oql-card-name {
  font-weight: 600;
  color: var(--oql-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ohga-quick-login .oql-card-email {
  font-size: 12px;
  color: var(--oql-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ohga-quick-login .oql-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  flex-shrink: 0;
}
.ohga-quick-login .oql-badge-admin { background: #fef2f2; color: #b91c1c; }
.ohga-quick-login .oql-badge-user  { background: #eff6ff; color: #1d4ed8; }

.ohga-quick-login .oql-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.ohga-quick-login .oql-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ede9fe;
  color: #6d28d9;
}

.ohga-quick-login .oql-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--oql-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--oql-text-muted);
}
.ohga-quick-login .oql-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
