/* App.css — petites retouches qui complètent Tailwind */

/* User menu dropdown */
.user-menu { display: none; }
.user-menu.open { display: block; }

/* Checkbox style (cocher une tâche) */
input[type="checkbox"].task-check {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.375rem;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
}
input[type="checkbox"].task-check:hover {
  border-color: #2563eb;
}
input[type="checkbox"].task-check:checked {
  background: #2563eb;
  border-color: #2563eb;
}
input[type="checkbox"].task-check:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  font-size: 0.95rem;
  background: white;
  transition: all 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-input::placeholder { color: #94a3b8; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.form-help {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

.form-error {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
}

/* Buttons (complément Tailwind) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: #2563eb;
  border-radius: 0.625rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  transition: background 0.15s;
  cursor: pointer;
}
.btn-secondary:hover { background: #f1f5f9; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: #dc2626;
  border-radius: 0.625rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }

/* Status badges */
.badge-haccp { background: #fef3c7; color: #b45309; }
.badge-overdue { background: #fee2e2; color: #b91c1c; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-pending { background: #dbeafe; color: #1d4ed8; }

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.4s ease-out;
}

/* Mobile menu for nav (basic) */
@media (max-width: 767px) {
  .mobile-nav-toggle { display: block; }
  .mobile-nav-closed { display: none; }
}
