/* Bottom sheet styles - shared between pages */

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.bottom-sheet.visible {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.bottom-sheet-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}

.bottom-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.bottom-sheet-close:active {
  background: var(--ripple);
}

/* Action grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.action-btn:active {
  background: var(--ripple);
}

.action-btn.danger {
  color: var(--error);
}

.action-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.action-btn .material-icons {
  font-size: 28px;
}

.action-btn span:last-child {
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Blocking overlay */
.blocking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.blocking-overlay.hidden {
  display: none;
}

.blocking-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bg-elevated, #eee);
  border-top-color: var(--primary, #6200ee);
  border-radius: 50%;
  animation: blocking-spin 0.8s linear infinite;
}

@keyframes blocking-spin {
  to { transform: rotate(360deg); }
}
