/* Poultry Link Custom Styles */

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

.pulse {
  animation: pulse 2s infinite;
}

/* Custom gradients */
.gradient-bg {
  background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #10B981, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.status-pending {
  @apply bg-yellow-100 text-yellow-800;
}

.status-matched {
  @apply bg-blue-100 text-blue-800;
}

.status-accepted {
  @apply bg-indigo-100 text-indigo-800;
}

.status-preparing {
  @apply bg-orange-100 text-orange-800;
}

.status-ready {
  @apply bg-purple-100 text-purple-800;
}

.status-delivered {
  @apply bg-green-100 text-green-800;
}

.status-cancelled {
  @apply bg-red-100 text-red-800;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem;
  }
}

/* Form inputs */
.form-input {
  @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.form-button {
  @apply w-full bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition duration-200;
}

/* Success and error messages */
.alert-success {
  @apply bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded relative;
}

.alert-error {
  @apply bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative;
}

/* Price display */
.price {
  @apply font-bold text-lg text-green-600;
}

.price-large {
  @apply font-bold text-2xl text-green-600;
}

/* Distance indicator */
.distance {
  @apply text-sm text-gray-500 flex items-center;
}

/* Rating stars */
.rating {
  @apply flex items-center space-x-1;
}

.star {
  @apply text-yellow-400;
}

.star-empty {
  @apply text-gray-300;
}

/* Product categories */
.category-eggs {
  @apply bg-yellow-50 border-yellow-200 text-yellow-800;
}

.category-broiler {
  @apply bg-red-50 border-red-200 text-red-800;
}

.category-layer {
  @apply bg-blue-50 border-blue-200 text-blue-800;
}

/* Navigation tabs */
.nav-tab {
  @apply px-4 py-2 text-sm font-medium rounded-lg transition-colors;
}

.nav-tab-active {
  @apply bg-blue-100 text-blue-700;
}

.nav-tab-inactive {
  @apply text-gray-500 hover:text-gray-700 hover:bg-gray-100;
}

/* Order timeline */
.timeline-item {
  @apply flex items-start space-x-3 pb-4;
}

.timeline-dot {
  @apply w-3 h-3 rounded-full mt-2 flex-shrink-0;
}

.timeline-dot-completed {
  @apply bg-green-500;
}

.timeline-dot-current {
  @apply bg-blue-500 animate-pulse;
}

.timeline-dot-pending {
  @apply bg-gray-300;
}

/* Farmer dashboard specific */
.inventory-grid {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4;
}

.inventory-item {
  @apply bg-white rounded-lg shadow p-4 border hover:shadow-md transition-shadow;
}

/* Admin dashboard */
.admin-card {
  @apply bg-white overflow-hidden shadow rounded-lg;
}

.admin-stat {
  @apply text-2xl font-bold text-gray-900;
}

.admin-label {
  @apply text-sm font-medium text-gray-500 truncate;
}

/* Responsive grid layouts */
.responsive-grid-2 {
  @apply grid grid-cols-1 md:grid-cols-2 gap-6;
}

.responsive-grid-3 {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
}

.responsive-grid-4 {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6;
}