/* Landing + Demand Calculator - Custom Styles */

/* Tailwind CSS utility overrides and custom styles */
.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 animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Custom button styles */
.btn-primary {
  @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-medium hover:bg-blue-700 transition-colors duration-200;
}

.btn-secondary {
  @apply bg-white text-blue-600 px-6 py-3 rounded-lg border-2 border-blue-600 font-medium hover:bg-blue-50 transition-colors duration-200;
}

.btn-danger {
  @apply bg-red-600 text-white px-4 py-2 rounded-md font-medium hover:bg-red-700 transition-colors duration-200;
}

/* Form styles */
.form-input {
  @apply w-full px-3 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors duration-200;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-error {
  @apply text-red-600 text-sm mt-1;
}

/* Card styles */
.card {
  @apply bg-white rounded-xl shadow-lg p-6;
}

.card-header {
  @apply border-b border-gray-200 pb-4 mb-6;
}

.card-title {
  @apply text-xl font-bold text-gray-900;
}

/* Status badges */
.badge {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-draft {
  @apply bg-gray-100 text-gray-800;
}

.badge-submitted {
  @apply bg-blue-100 text-blue-800;
}

.badge-estimated {
  @apply bg-purple-100 text-purple-800;
}

.badge-proposed {
  @apply bg-green-100 text-green-800;
}

/* Loading spinner */
.spinner {
  @apply animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600;
}

/* Responsive breakpoints helpers */
@media (max-width: 640px) {
  .mobile-stack {
    @apply flex-col space-y-2;
  }
  
  .mobile-stack > * {
    @apply w-full;
  }
}

/* Custom scrollbar */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-friendly {
    @apply text-black bg-white;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    @apply border-2 border-blue-800;
  }
  
  .form-input {
    @apply border-2 border-gray-600;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
  
  .transition-colors {
    transition: none;
  }
  
  .hover\\:scale-105:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.focus-ring:focus {
  @apply outline-none ring-2 ring-blue-500 ring-offset-2;
}

/* Text selection */
::selection {
  @apply bg-blue-200 text-blue-900;
}

::-moz-selection {
  @apply bg-blue-200 text-blue-900;
}