/* Dep i Mès — UI compartida */
.fc .fc-button-primary {
  background-color: #8b9e1a !important;
  border-color: #8b9e1a !important;
}
.fc .fc-button-primary:hover {
  background-color: #6b7a14 !important;
  border-color: #6b7a14 !important;
}

/* Elevació tipus dashboard modern (soft shadow) */
.shadow-card {
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 4px 12px rgb(0 0 0 / 0.06);
}

.shadow-card-hover:hover {
  box-shadow:
    0 2px 4px rgb(0 0 0 / 0.05),
    0 8px 20px rgb(0 0 0 / 0.07);
}

/* Fons principal àrea de treball */
.admin-main-bg {
  background: linear-gradient(180deg, #f4f5f7 0%, #f0f1f4 100%);
}

/* Dark mode global (sin reescribir cada plantilla) */
.dark .admin-main-bg {
  background: linear-gradient(180deg, #0b0b0c 0%, #0f1012 100%);
}
.dark .shadow-card {
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.35),
    0 10px 30px rgb(0 0 0 / 0.45);
}
.dark .bg-white {
  background-color: #0f1012 !important;
}
.dark .bg-white\/95,
.dark .bg-white\/90,
.dark .bg-white\/80 {
  background-color: rgba(15, 16, 18, 0.82) !important;
}
.dark .bg-stone-50,
.dark .bg-stone-50\/40,
.dark .bg-stone-50\/50 {
  background-color: rgba(24, 24, 27, 0.75) !important;
}
.dark .border-stone-100,
.dark .border-stone-200,
.dark .border-stone-200\/80,
.dark .border-stone-200\/90 {
  border-color: rgba(63, 63, 70, 0.65) !important;
}
.dark .text-depimes-text {
  color: #f5f5f4 !important;
}
.dark .text-stone-400 { color: #a1a1aa !important; }
.dark .text-stone-500 { color: #a1a1aa !important; }
.dark .text-stone-600 { color: #d4d4d8 !important; }
.dark .text-stone-700 { color: #e4e4e7 !important; }
.dark .text-stone-800 { color: #f4f4f5 !important; }
.dark .text-stone-900 { color: #fafafa !important; }
.dark table thead { color: #a1a1aa !important; }
.dark .hover\:bg-stone-100\/60:hover { background-color: rgba(39, 39, 42, 0.6) !important; }
.dark .hover\:bg-stone-50:hover { background-color: rgba(39, 39, 42, 0.45) !important; }

/* Formularios: mejora contraste en dark (inputs sin clases dark:) */
.dark input,
.dark select,
.dark textarea {
  color: #f5f5f4;
}
.dark input[type="date"],
.dark input[type="month"] {
  color-scheme: dark;
}

/* FullCalendar — vista cites admin */
.fc-calendar-shell .fc {
  --fc-border-color: #e7e5e4;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: #fafaf9;
  --fc-today-bg-color: rgba(139, 158, 26, 0.09);
  --fc-button-bg-color: #8b9e1a;
  --fc-button-border-color: #8b9e1a;
  --fc-button-hover-bg-color: #6b7a14;
  --fc-button-hover-border-color: #6b7a14;
  --fc-button-active-bg-color: #6b7a14;
  --fc-button-text-color: #fff;
  --fc-event-border-color: transparent;
  font-family: inherit;
}

.dark .fc-calendar-shell .fc {
  --fc-border-color: rgba(63, 63, 70, 0.65);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(24, 24, 27, 0.65);
  --fc-today-bg-color: rgba(139, 158, 26, 0.16);
  --fc-button-text-color: #f5f5f4;
}

.dark .fc-calendar-shell .fc .fc-scrollgrid,
.dark .fc-calendar-shell .fc .fc-scrollgrid-section > td,
.dark .fc-calendar-shell .fc .fc-col-header-cell,
.dark .fc-calendar-shell .fc .fc-daygrid-day {
  border-color: rgba(63, 63, 70, 0.65) !important;
}

.dark .fc-calendar-shell .fc .fc-col-header-cell {
  background: rgba(24, 24, 27, 0.75) !important;
  color: #a1a1aa !important;
}

.dark .fc-calendar-shell .fc .fc-daygrid-day-number {
  color: #e7e5e4 !important;
}

.dark .fc-calendar-shell .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: #8b9e1a;
  color: #0b0b0c;
}

.fc-calendar-shell .fc .fc-toolbar-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2c2c2c;
}

.dark .fc-calendar-shell .fc .fc-toolbar-title {
  color: #f5f5f4;
}

.fc-calendar-shell .fc .fc-col-header-cell {
  padding: 0.65rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #78716c;
  background: #fafaf9;
}

.fc-calendar-shell .fc .fc-daygrid-day-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: #44403c;
  padding: 0.35rem 0.45rem;
}

.fc-calendar-shell .fc .fc-daygrid-day-frame {
  min-height: 7.5rem;
}

.fc-calendar-shell .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: #8b9e1a;
  color: #fff;
  border-radius: 9999px;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.fc-calendar-shell .fc .fc-button {
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4em 0.75em;
  text-transform: capitalize;
}

.fc-calendar-shell .fc .fc-button-primary:not(:disabled):active,
.fc-calendar-shell .fc .fc-button-primary:not(:disabled).fc-button-active {
  background-color: #6b7a14 !important;
  border-color: #6b7a14 !important;
}

.fc-calendar-shell .fc .fc-daygrid-event.fc-depimes-event {
  border-radius: 0.45rem !important;
  border-left-width: 3px !important;
  border-left-style: solid !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  padding: 3px 6px 3px 4px !important;
  margin-bottom: 3px !important;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.fc-calendar-shell .fc .fc-daygrid-more-link {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7a14;
}

.fc-calendar-shell .fc .fc-scrollgrid {
  border-radius: 0 0 1rem 1rem;
}
