/* Styles for staff section pages: campers, staff-roster, sessions, schedule */

.section-grid { max-width: 1100px; margin: 0 auto; }

.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: white;
  padding: 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.user-bar .greeting { font-size: 0.95rem; color: var(--gray-700); }
.user-bar .greeting strong { color: var(--gray-900); font-weight: 700; }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { background: var(--gray-200); }

.panel {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
}

.panel h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h3 .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: white;
}

.empty-state {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-style: italic;
  padding: 16px 0;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.item:last-child { border-bottom: none; }

.item-content { flex: 1; min-width: 0; }

.item-title {
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.item-order {
  font-size: 0.72rem;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.item-sub {
  font-size: 0.95rem;
  color: var(--forest);
  font-weight: 600;
  margin-top: 2px;
}

.item-body {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin-top: 6px;
  white-space: pre-wrap;
}

.item-actions { display: flex; gap: 8px; }

.btn-mini {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.btn-mini:hover { background: var(--gray-100); }
.btn-mini.danger { color: #b91c1c; border-color: #fecaca; }
.btn-mini.danger:hover { background: #fef2f2; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  outline: none;
  background: var(--gray-50);
  color: var(--gray-900);
  resize: vertical;
}

.input:focus, .textarea:focus {
  border-color: var(--forest);
  background: white;
  box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.1);
}

.textarea { min-height: 100px; line-height: 1.5; }

.row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #064e3b;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
  max-width: 320px;
}
.toast.visible { opacity: 1; }
.toast.error { background: #991b1b; }

.access-denied {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Section navigation buttons (used on admin.html and index.html) */
.section-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.section-btn {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--gray-900);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.section-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-light);
}

.section-btn-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 4px;
}

.section-btn-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
}

.section-btn-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .item { flex-direction: column; align-items: stretch; }
}
