/**
 * Alves Finança Familiar — Bottom Sheet & Modais (PRD §17-A, §30)
 * Desenvolvido por Juliano Alves
 */

.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-content {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 0.5px solid var(--border-subtle);
  padding: var(--space-md) var(--space-lg) calc(var(--space-xl) + var(--safe-bottom));
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.bottom-sheet-backdrop.active .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background-color: var(--border-strong);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-md);
}

.bottom-sheet-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: center;
}

.sheet-options-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sheet-option-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--bg-card);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  min-height: var(--touch-target-min);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.sheet-option-item:active {
  transform: scale(0.98);
}

.sheet-option-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sheet-option-icon.expense {
  background-color: var(--negative-bg);
  color: var(--negative-text);
}

.sheet-option-icon.income {
  background-color: var(--positive-bg);
  color: var(--positive-text);
}

.sheet-option-icon.transfer {
  background-color: var(--info-bg);
  color: var(--info-text);
}

.sheet-option-icon.card {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.sheet-option-text {
  flex: 1;
}

.sheet-option-name {
  font-size: 14px;
  font-weight: 600;
}

.sheet-option-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}
