@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom base styles */
@layer base {
  html {
    font-family: 'Inter', system-ui, sans-serif;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
  }

  /* Focus styles */
  *:focus {
    outline: 2px solid theme('colors.amber.500');
    outline-offset: 2px;
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: theme('colors.gray.100');
  }

  ::-webkit-scrollbar-thumb {
    background: theme('colors.amber.600');
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: theme('colors.amber.700');
  }
}

/* Custom component styles */
@layer components {
  .btn {
    @apply inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-lg transition-colors duration-200;
  }

  .btn-primary {
    @apply bg-amber-600 text-white hover:bg-amber-700 focus:ring-2 focus:ring-offset-2 focus:ring-amber-500;
  }

  .btn-secondary {
    @apply bg-white text-gray-900 border-gray-300 hover:bg-gray-50;
  }

  .card {
    @apply bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden;
  }

  .card-header {
    @apply px-6 py-4 border-b border-gray-200;
  }

  .card-body {
    @apply px-6 py-4;
  }

  .card-footer {
    @apply px-6 py-4 border-t border-gray-200 bg-gray-50;
  }

  .form-input {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-amber-500 focus:border-amber-500 sm:text-sm;
  }

  .form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
  }

  .modal {
    @apply fixed inset-0 z-50 overflow-y-auto;
  }

  .modal-backdrop {
    @apply fixed inset-0 bg-gray-600 bg-opacity-75 transition-opacity;
  }

  .modal-content {
    @apply relative bg-white rounded-lg shadow-xl max-w-lg mx-auto mt-20;
  }
}

/* Custom utility classes */
@layer utilities {
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .gradient-primary {
    background: linear-gradient(135deg, theme('colors.amber.600'), theme('colors.amber.700'));
  }

  .animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
  }

  .animate-slide-up {
    animation: slideUp 0.3s ease-out;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-full {
    @apply w-full;
  }

  .mobile-hidden {
    @apply hidden;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  .print-break {
    page-break-before: always;
  }
}
