/* ===== Mijn Kapsalon Urenbeheer — custom styling op Tailwind ===== */

@layer base {
  body { -webkit-font-smoothing: antialiased; }
}

/* Component-classes (toegepast via @apply waar Tailwind Play dat toelaat).
   Play CDN ondersteunt @apply niet in een los CSS-bestand, dus we schrijven
   ze hier als gewone CSS zodat het overal werkt. */

/* --- Navigatie (desktop tabs) --- */
.nav-tab {
  position: relative;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 3px solid transparent;
  transition: all 0.18s ease;
}
.nav-tab:hover { color: #fff; }
.nav-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* --- Mobiele onderbalk --- */
.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.6rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #8a9382;
  transition: color 0.15s ease;
}
.bottom-tab.active { color: #467046; }

/* --- Statistiek-kaarten --- */
.stat-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 20px -2px rgba(41,60,41,0.08), 0 2px 6px -2px rgba(41,60,41,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -6px rgba(41,60,41,0.16);
}
.stat-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
}
.stat-label { font-size: 0.8rem; font-weight: 600; color: #6b7466; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: #1f2326; line-height: 1.1; margin-top: 0.15rem; }
.stat-sub { font-size: 0.75rem; color: #9aa093; margin-top: 0.3rem; }

/* --- Formuliervelden --- */
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a4f55;
  margin-bottom: 0.4rem;
}
.field {
  width: 100%;
  background: #fbf9f5;
  border: 1.5px solid #ece1cd;
  border-radius: 0.85rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: #2b2f33;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field:focus {
  outline: none;
  background: #fff;
  border-color: #7aa67a;
  box-shadow: 0 0 0 3px rgba(122,166,122,0.2);
}

/* --- Type-keuze knoppen --- */
.type-btn {
  padding: 0.6rem 0.5rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fbf9f5;
  border: 1.5px solid #ece1cd;
  color: #6b7466;
  transition: all 0.15s ease;
}
.type-btn:hover { border-color: #a9c6a9; }
.type-btn-active {
  background: #467046;
  border-color: #467046;
  color: #fff;
}

/* --- Maandnavigatie --- */
.month-nav {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1.5px solid #ece1cd;
  font-size: 1.4rem;
  font-weight: 700;
  color: #467046;
  line-height: 1;
  transition: all 0.15s ease;
}
.month-nav:hover { background: #e8efe8; border-color: #a9c6a9; }

/* --- Samenvattingspillen (mobiel-vriendelijk) --- */
.summary-pill {
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 20px -2px rgba(41,60,41,0.08);
}
.summary-pill-label { display: block; font-size: 0.72rem; font-weight: 600; color: #9aa093; }
.summary-pill-value { display: block; font-size: 1.05rem; font-weight: 800; color: #1f2326; margin-top: 0.15rem; }

/* --- Tabel --- */
.th { padding: 0.8rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.td { padding: 0.8rem 1rem; white-space: nowrap; }

/* --- Type-badges in tabel --- */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-werk { background: #e8efe8; color: #3a5a3a; }
.badge-ziek { background: #fde8e8; color: #c0392b; }
.badge-vakantie { background: #fdf3e0; color: #b9842f; }

/* --- Icoonknoppen tabel --- */
.icon-btn { padding: 0.35rem; border-radius: 0.55rem; transition: background 0.15s ease; }
.icon-btn:hover { background: #f0ece3; }

/* --- Animaties --- */
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.animate-pop { animation: pop 0.18s ease-out; }

@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.view:not(.hidden) { animation: fadein 0.22s ease-out; }

/* --- Toast zichtbaar maken --- */
#toast.show { display: block; animation: pop 0.2s ease-out; }

/* --- Print (handig bij export-controle) --- */
@media print {
  header, nav, #exportBtn, .month-nav, .icon-btn { display: none !important; }
  body { background: #fff; padding: 0; }
}
