/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Poppins:wght@700;800;900&display=swap');

/* CSS Variables for Brand Colors */
:root {
  --brand-red: #C7463B;
  --brand-bg: #F9F9F7;
  --brand-text: #333333;
  --brand-card-bg: #F5F1E8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --green-50: #f0fdf4;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-50: #fef2f2;
  --red-300: #fca5a5;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --yellow-100: #fef3c7;
  --yellow-300: #fcd34d;
  --yellow-400: #f59e0b;
  --yellow-600: #d97706;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.6;
}

.font-heading {
  font-family: 'Poppins', sans-serif;
}

.font-sans {
  font-family: 'Inter', sans-serif;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.z-50 { z-index: 50; }

/* Grid Classes */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:gap-6 { gap: 1.5rem; }
}

/* Spacing Classes */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-0 { padding-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-left: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Width Classes */
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.h-4 { height: 1rem; }
.h-6 { width: 1.5rem; height: 1.5rem; }
.h-7 { width: 1.75rem; height: 1.75rem; }
.h-12 { width: 3rem; height: 3rem; }
.max-w-sm { max-width: 24rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* Color Classes */
.bg-brand-bg { background-color: var(--brand-bg); }
.bg-brand-card-bg { background-color: var(--brand-card-bg); }
.bg-brand-red { background-color: var(--brand-red); }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-green-50 { background-color: var(--green-50); }
.bg-green-500 { background-color: var(--green-500); }
.bg-green-600 { background-color: var(--green-600); }
.bg-red-50 { background-color: var(--red-50); }
.bg-yellow-100 { background-color: var(--yellow-100); }
.bg-yellow-300 { background-color: var(--yellow-300); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-orange-50 { background-color: #fff7ed; }

.text-brand-text { color: var(--brand-text); }
.text-brand-red { color: var(--brand-red); }
.text-white { color: white; }
.text-black { color: black; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-green-500 { color: var(--green-500); }
.text-green-600 { color: var(--green-600); }
.text-red-500 { color: var(--red-500); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: #b91c1c; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-orange-700 { color: #c2410c; }
.text-blue-500 { color: #3b82f6; }
.text-purple-500 { color: #8b5cf6; }
.text-yellow-600 { color: var(--yellow-600); }

/* Fill colors for icons */
.fill-green-500 { fill: var(--green-500); }

/* Typography Classes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

@media (min-width: 640px) {
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}

@media (min-width: 768px) {
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .lg\:text-7xl { font-size: 4.5rem; }
}

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.leading-tight { line-height: 1.25; }

/* Decoration Classes */
.decoration-brand-red { text-decoration-color: var(--brand-red); }
.decoration-2 { text-decoration-thickness: 2px; }

/* List Classes */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Border Classes */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-gray-200 { border-color: var(--gray-200); }
.border-green-400 { border-color: var(--green-400); }
.border-red-300 { border-color: var(--red-300); }
.border-red-400 { border-color: #f87171; }
.border-orange-400 { border-color: #fb923c; }
.border-yellow-400 { border-color: var(--yellow-400); }
.border-blue-200 { border-color: #bfdbfe; }
.border-purple-200 { border-color: #e9d5ff; }
.border-orange-200 { border-color: #fed7aa; }
.border-blue-500 { border-color: #3b82f6; }
.border-purple-500 { border-color: #8b5cf6; }
.border-dashed { border-style: dashed; }
.border-b-gray-200 { border-bottom-color: var(--gray-200); }

/* Rounded Classes */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow Classes */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }
.shadow-brand-red\/20 { box-shadow: 0 25px 50px -12px rgba(199, 70, 59, 0.2); }
.shadow-brand-red\/30 { box-shadow: 0 25px 50px -12px rgba(199, 70, 59, 0.3); }
.shadow-brand-red\/50 { box-shadow: 0 10px 15px -3px rgba(199, 70, 59, 0.5), 0 4px 6px -2px rgba(199, 70, 59, 0.5); }
.shadow-green-500\/30 { box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.3); }

.hover\:shadow-brand-red\/50:hover { box-shadow: 0 10px 15px -3px rgba(199, 70, 59, 0.5), 0 4px 6px -2px rgba(199, 70, 59, 0.5); }

/* Aspect Ratio */
.aspect-\[2\/3\] { aspect-ratio: 2/3; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Display Classes */
.block { display: block; }
.inline-block { display: inline-block; }

/* Transform Classes */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.rotate-45 { --tw-rotate: 45deg; transform: var(--tw-transform); }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: var(--tw-transform); }

/* Transitions */
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: var(--tw-transform); }
.hover\:text-gray-600:hover { color: var(--gray-600); }
.hover\:text-blue-700:hover { color: #1d4ed8; }

/* Positioning */
.top-4 { top: 1rem; }
.right-\[-34px\] { right: -34px; }
.bottom-5 { bottom: 1.25rem; }
.right-5 { right: 1.25rem; }

/* Opacity */
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }

/* Custom Classes */
.highlight {
  background-color: var(--yellow-300);
  color: black;
  padding: 0 0.25rem;
}

/* Button Styles */
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  vertical-align: top;
}

.font-medium { font-weight: 500; }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.3s ease-out forwards;
}

/* Responsive text classes */
@media (min-width: 640px) {
  .sm\:text-center { text-align: center; }
}

/* Toast Notification Styles */
#toast-container {
  pointer-events: none;
}

#toast-container > * {
  pointer-events: auto;
}

/* Fix for icons alignment */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}
