/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Bottom Navigation */
.bottom-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  color: rgb(var(--c-text-muted));
  transition: color 0.15s ease;
  min-width: 3rem;
}

.bottom-nav-tab:active {
  transform: scale(0.95);
}

.bottom-nav-tab-active {
  color: rgb(var(--c-accent));
}

.bottom-nav-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgb(var(--c-accent));
  color: white;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(var(--c-accent), 0.4);
  transform: translateY(-0.5rem);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bottom-nav-add-btn:active {
  transform: translateY(-0.5rem) scale(0.95);
  box-shadow: 0 2px 8px rgba(var(--c-accent), 0.3);
}

/* iOS Safe Area */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Quick Add Bottom Sheet */
.quick-add-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.quick-add-sheet.hidden {
  display: none;
}

.quick-add-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--c-text-primary), 0.4);
  backdrop-filter: blur(4px);
}

.quick-add-panel {
  position: relative;
  width: 100%;
  max-height: 85vh;
  background: rgb(var(--c-surface-raised));
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.quick-add-panel.open {
  transform: translateY(0);
}

.quick-add-handle {
  width: 2.5rem;
  height: 0.25rem;
  background: rgb(var(--c-border));
  border-radius: 9999px;
  margin: 0.75rem auto;
}

/* Filter Sheet */
.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.filter-sheet.hidden {
  display: none;
}

.filter-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--c-text-primary), 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 70vh;
  background: rgb(var(--c-surface-raised));
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.filter-sheet-panel.open {
  transform: translateY(0);
}

.filter-sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  background: rgb(var(--c-border));
  border-radius: 9999px;
  margin: 0.75rem auto;
}

.filter-chip {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip:active {
  transform: scale(0.95);
}
