/* BuildHub Custom Styles */

/* Base & Smooth transitions */
* { transition-property: color, background-color, border-color, box-shadow, opacity, transform; transition-duration: 200ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
a, button { transition: all 0.2s ease; outline: none; }
button:focus-visible, a:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6; }

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

/* Custom scrollbar - Modern thin style */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Global card styling */
.card-modern {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

/* Hero gradient animation */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Card hover effects */
.project-card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); }

/* Mobile responsive nav */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.success { background: #166534; }
.toast.error { background: #991b1b; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Role selector active state */
.role-btn.active {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

/* Tab system */
.tab-btn.active { border-bottom: 2px solid #2563eb; color: #2563eb; }

/* Pricing tab */
.pricing-tab-btn.active {
  background: white !important;
  color: #1d4ed8 !important;
}

/* ── PDF Draggable Field Styles ── */
[data-draggable="true"] {
  cursor: default;
  border-radius: 4px;
}
[data-draggable="true"].dragging {
  box-shadow: 0 0 0 2px rgba(59,130,246,0.5), 0 8px 25px rgba(0,0,0,0.15) !important;
  z-index: 50 !important;
}
[data-draggable="true"]:hover .drag-handle {
  opacity: 1 !important;
}
