
/* ==========================================================================
   ADVANCED QUICK EXIT + HISTORY SCRUBBING
   ========================================================================== */

.quick-exit-panel-fixed {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 1000;
  max-width: 320px;
}

.btn-escape-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: #dc2626;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
  border: 2px solid #b91c1c;
  cursor: pointer;
}

.btn-escape-action:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.5);
}

.btn-escape-action .main-label {
  font-size: 1.1rem;
  line-height: 1.3;
  display: block;
}

.btn-escape-action .sub-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: block;
}

/* History cleardown drawer */
.history-cleardown-drawer {
  margin-top: 0.75rem;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #334155;
}

.history-cleardown-drawer details {
  padding: 0;
}

.history-cleardown-drawer summary {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #fbbf24;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  list-style: none;
}

.history-cleardown-drawer summary::-webkit-details-marker {
  display: none;
}

.history-cleardown-drawer summary::before {
  content: '▶ ';
  font-size: 0.7rem;
}

.history-cleardown-drawer details[open] summary::before {
  content: '▼ ';
}

.cleardown-instructions {
  padding: 0 1rem 1rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
}

.cleardown-instructions p {
  margin: 0.5rem 0;
}

.cleardown-instructions strong {
  color: #fbbf24;
}

.cleardown-instructions em {
  color: #7dd3fc;
  font-style: italic;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .quick-exit-panel-fixed {
    bottom: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .btn-escape-action {
    padding: 0.875rem 1rem;
  }

  .btn-escape-action .main-label {
    font-size: 1rem;
  }

  .btn-escape-action .sub-label {
    font-size: 0.7rem;
  }

  .history-cleardown-drawer {
    font-size: 0.8rem;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  .btn-escape-action {
    border-width: 3px;
  }

  .history-cleardown-drawer {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .btn-escape-action {
    transition: none;
  }
}
