/* ── Canincare Custom Styles ─────────────────────────────────────────────── */

/* Smooth page transitions */
body { transition: opacity 0.15s ease; }

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #f59e0b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d97706; }

/* Image carousel */
.carousel-container { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 100%; }

/* Star rating inputs */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.75rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* Portfolio grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.portfolio-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; cursor: pointer; }
.portfolio-item img,
.portfolio-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-item:hover img,
.portfolio-item:hover video { transform: scale(1.05); }
.portfolio-item .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  color: white; font-size: 1.5rem;
}
.portfolio-item:hover .overlay { opacity: 1; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#lightbox.active { opacity: 1; pointer-events: all; }
#lightbox img,
#lightbox video { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; }

/* Dashboard sidebar */
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  color: #475569; font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover { background: #fef3c7; color: #d97706; }
.sidebar-link.active { background: #f59e0b; color: white; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-pending   { background: #fef3c7; color: #d97706; }
.badge-confirmed { background: #d1fae5; color: #059669; }
.badge-cancelled { background: #fee2e2; color: #dc2626; }
.badge-completed { background: #dbeafe; color: #2563eb; }
.badge-in-progress { background: #e0e7ff; color: #4f46e5; }
.badge-available { background: #d1fae5; color: #059669; }
.badge-sold      { background: #fee2e2; color: #dc2626; }
.badge-reserved  { background: #fef3c7; color: #d97706; }

/* Form input focus styles */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  color: #1e293b;
}
.form-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Progress bar */
.progress-bar {
  height: 8px; border-radius: 9999px;
  background: #e2e8f0; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.6s ease;
}

/* Drag & Drop upload area */
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: 16px;
  padding: 32px; text-align: center;
  transition: all 0.2s; cursor: pointer;
}
.upload-zone:hover,
.upload-zone.dragover { border-color: #f59e0b; background: #fffbeb; }

/* Lesson sidebar */
.lesson-item {
  display: flex; align-items: center; gap-10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 0.875rem; cursor: pointer;
  transition: all 0.15s;
}
.lesson-item:hover { background: #f8fafc; }
.lesson-item.current { background: #fef3c7; font-weight: 600; }
.lesson-item.done { color: #059669; }

