/* ============================================================
   STOCKING SCHEDULE TRACKER — Styles
   ============================================================ */

/* ─── Layout ─── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.page-header { text-align: center; margin-bottom: 24px; }
.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  background: linear-gradient(135deg, var(--fish-accent, #06b6d4), var(--fish-accent-bright, #22d3ee), var(--fish-accent-ultra, #67e8f9));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.page-header p { color: var(--fish-text-dim, #64748b); font-size: 0.95rem; max-width: 650px; margin: 0 auto; }

/* ─── Glass Panel ─── */
.glass-panel {
  background: rgba(10, 22, 40, 0.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
  padding: 22px; margin-bottom: 20px;
}
.section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ─── Controls ─── */
.controls-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px;
}
.controls-row select, .controls-row input {
  padding: 10px 14px; border-radius: 8px; font-size: 0.9rem;
  background: var(--fish-bg-raised, #0d2137); color: var(--fish-text, #e0e8f0);
  border: 1px solid rgba(255,255,255,0.1); outline: none; transition: border-color 0.2s;
}
.controls-row select:focus, .controls-row input:focus {
  border-color: var(--fish-accent, #06b6d4);
}
.controls-row select { min-width: 180px; cursor: pointer; }

/* ─── View Tabs ─── */
.view-tabs {
  display: flex; gap: 4px; background: var(--fish-bg-raised, #0d2137); border-radius: 8px; padding: 3px;
}
.view-tab {
  padding: 8px 16px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  color: var(--fish-text-muted, #94a3b8); cursor: pointer; transition: all 0.2s;
  border: none; background: transparent;
}
.view-tab.active {
  background: var(--fish-accent, #06b6d4); color: var(--fish-text-inverse, #0a1628);
}
.view-tab:hover:not(.active) { color: var(--fish-text, #e0e8f0); }

/* ─── Map Container ─── */
#stocking-map {
  height: 420px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
  background: var(--fish-bg-deep, #040d14); z-index: 1;
}
.leaflet-popup-content-wrapper {
  background: rgba(10,22,40,0.95) !important; color: var(--fish-text, #e0e8f0) !important;
  border: 1px solid rgba(6,182,212,0.2) !important; border-radius: 10px !important;
}
.leaflet-popup-tip { background: rgba(10,22,40,0.95) !important; }
.leaflet-popup-content { font-size: 0.85rem !important; line-height: 1.5 !important; }
.leaflet-popup-content strong { color: var(--fish-accent-bright, #22d3ee); }

/* ─── Calendar Grid ─── */
.calendar-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px;
}
.cal-month {
  background: var(--fish-bg-raised, #0d2137); border-radius: 8px; padding: 10px 6px; text-align: center;
  border: 1px solid rgba(255,255,255,0.04); transition: all 0.2s; min-height: 80px;
}
.cal-month.has-events { border-color: rgba(6,182,212,0.3); cursor: pointer; }
.cal-month.has-events:hover { background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.5); }
.cal-month.active { background: rgba(6,182,212,0.12); border-color: var(--fish-accent, #06b6d4); }
.cal-month-label { font-size: 0.7rem; font-weight: 700; color: var(--fish-text-muted, #94a3b8); text-transform: uppercase; margin-bottom: 4px; }
.cal-month-count {
  font-size: 1.3rem; font-weight: 800; color: var(--fish-accent-bright, #22d3ee);
}
.cal-month:not(.has-events) .cal-month-count { color: var(--fish-text-dim, #64748b); font-size: 1rem; }
.cal-dot-row { display: flex; gap: 2px; justify-content: center; margin-top: 4px; flex-wrap: wrap; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; }

@media (max-width: 768px) {
  .calendar-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Stocking List ─── */
.stocking-list { display: flex; flex-direction: column; gap: 8px; }
.stocking-card {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--fish-bg-raised, #0d2137); border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.stocking-card:hover { border-color: rgba(6,182,212,0.25); background: rgba(6,182,212,0.04); }
.stocking-date {
  text-align: center;
}
.stocking-date .month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--fish-accent, #06b6d4); }
.stocking-date .day { font-size: 1.4rem; font-weight: 800; color: var(--fish-text); line-height: 1.1; }
.stocking-info h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.stocking-info .species-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 600;
  margin-right: 4px; margin-top: 2px;
}
.stocking-info .location-text { font-size: 0.8rem; color: var(--fish-text-muted); margin-top: 2px; }
.stocking-info .qty-text { font-size: 0.78rem; color: var(--fish-text-dim); }
.stocking-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ─── Alert Button ─── */
.btn-alert {
  padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(245,158,11,0.4); background: rgba(245,158,11,0.08);
  color: #f59e0b; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-alert:hover { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.6); }
.btn-alert.active { background: rgba(245,158,11,0.2); border-color: #f59e0b; }
.btn-alert.active::before { content: '\2713 '; }

/* ─── Tips Panel ─── */
.tips-panel {
  background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); border-radius: 10px;
  padding: 18px; margin-top: 16px;
}
.tips-panel h3 { font-size: 1rem; font-weight: 700; color: var(--fish-green, #10b981); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tips-species { font-weight: 700; color: var(--fish-accent-bright); }
.tips-section { margin-bottom: 10px; }
.tips-section h4 { font-size: 0.85rem; font-weight: 600; color: var(--fish-text-muted); margin-bottom: 4px; }
.tips-section p, .tips-section li { font-size: 0.85rem; color: var(--fish-text); line-height: 1.6; }
.tips-section ul { padding-left: 16px; list-style: disc; }

/* ─── Species Legend ─── */
.species-legend {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--fish-text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ─── Empty State ─── */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--fish-text-dim);
}
.empty-state svg { margin: 0 auto 12px; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .stocking-card { grid-template-columns: 50px 1fr; }
  .stocking-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .controls-row { flex-direction: column; }
  .controls-row select { width: 100%; }
}
