/* EVBro — Bottom action sheet (direct orders).
   Standalone sheet: the load ORDER (templates/index.html) follows the original cascade; do not change it. */

/* ==========================================================
   NATIVE ACTION SHEET (BOTTOM SHEET FOR DIRECT COMMANDS)
   ========================================================== */
.action-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.action-sheet-card {
  width: 100%;
  max-width: 480px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 22px 20px;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.action-sheet-overlay.open .action-sheet-card {
  transform: translateY(0);
}

.action-sheet-drag-handle {
  width: 38px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 0 auto 16px;
}

.action-sheet-header {
  text-align: center;
  margin-bottom: 18px;
}

.action-sheet-title {
  font-size: 17px;
  font-weight: 750;
  color: #ffffff;
  margin: 0 0 4px;
}

.action-sheet-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.action-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.action-sheet-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}

.action-sheet-btn:active,
.action-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.99);
}

.action-sheet-btn.primary {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.15));
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.action-sheet-btn.danger {
  background: rgba(255, 69, 58, 0.15);
  border-color: rgba(255, 69, 58, 0.3);
  color: #ff453a;
}

.action-sheet-cancel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 13px;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
