/* ── CALENDAR STYLES ── */

/* Month label / trigger button */
.dropdown-btn {
  background-color: var(--bg-color);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
  white-space: nowrap;
}

.dropdown-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background-color: var(--accent-teal-bg);
}

body.dark .dropdown-btn:hover {
  background-color: rgba(13, 148, 136, 0.12);
}

/* ──────────────────────────────────
   iOS-STYLE DRUM / WHEEL PICKER
   ────────────────────────────────── */

/* ──────────────────────────────────
   iOS-STYLE DRUM / WHEEL PICKER MODAL
   ────────────────────────────────── */

.drum-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.drum-picker-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 320px;
  max-width: 92%;
  animation: drumSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

body.dark .drum-picker-panel {
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

@keyframes drumSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Header: Cancel | title | Done */
.drum-picker-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--card-bg);
  position: relative;
  z-index: 5;
}

.drum-picker-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.drum-btn-cancel {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s;
}
.drum-btn-cancel:hover { color: var(--text-primary); }

.drum-btn-done {
  background: var(--accent-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.drum-btn-done:hover { opacity: 0.88; }

/* Body: 3 drum columns */
.drum-picker-body {
  display: flex;
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
  height: 254px; /* 24px labels + 230px drum height */
}

/* Highlight bar — centred selection indicator */
.drum-highlight-bar {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 116px; /* 24px label + 92px offset (2 items above centre) */
  height: 46px;
  background: var(--accent-teal-bg);
  border: 1.5px solid var(--accent-teal);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

body.dark .drum-highlight-bar {
  opacity: 0.25;
  background: rgba(13, 148, 136, 0.15);
}

/* Top & bottom fade overlays */
.drum-fade-top,
.drum-fade-bottom {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  height: 92px;          /* 2 × item height */
  pointer-events: none;
  z-index: 3;
}

.drum-fade-top {
  top: 24px; /* Below labels */
  background: linear-gradient(
    to bottom,
    var(--card-bg) 0%,
    transparent 100%
  );
}

.drum-fade-bottom {
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--card-bg) 0%,
    transparent 100%
  );
}

/* Each column wrapper */
.drum-col-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drum-col-label {
  height: 24px;
  line-height: 24px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  width: 100%;
}

/* Scrollable drum column */
.drum-col {
  height: 230px;              /* 5 × 46px */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
}

.drum-col::-webkit-scrollbar { display: none; }

/* Each drum row item */
.drum-item {
  height: 46px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s, font-weight 0.15s, font-size 0.15s;
  user-select: none;
  letter-spacing: 0.01em;
}

/* Centre (selected) item styling */
.drum-item.drum-centre {
  color: var(--accent-teal);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Items near-centre — slightly larger */
.drum-item:nth-child(n+2):nth-last-child(n+2) {
  /* secondary items — handled by JS classes */
}
