@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --color-primary: #1b3f6c;
  --color-secondary: #4a545c;
  --color-foreground: #FFFFFF;
  --color-accent: #F0F4F8;
  --color-accentground: #e4d4d4;
}

@font-face {
  font-family: 'Montserrat';
  src: url('https://fonts.gstatic.com/s/montserrat/v25/JTUQjIg1_i6t8kCHKm45_QphziTn89dtpQ.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

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

@layer utilities {
  .bg-primary { background-color: var(--color-primary)  }
  .text-primary { color: var(--color-primary)  }
  .bg-secondary { background-color: var(--color-secondary)  }
  .text-secondary { color: var(--color-secondary)}
  .bg-foreground { background-color: var(--color-foreground)  }
  .text-foreground { color: var(--color-foreground)  }
  .bg-accent { background-color: var(--color-accent)  }
  .text-accent { color: var(--color-accent)  }
  .bg-accentground { background-color: var(--color-accentground) }
  .text-accentground { color: var(--color-accentground)  }
  .bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accentground) 100%);
  }
  .hover\:bg-primary:hover { background-color: var(--color-primary); }
  .hover\:text-primary:hover { color: var(--color-primary); }
  .hover\:bg-secondary:hover { background-color: var(--color-secondary); }
  .hover\:text-secondary:hover { color: var(--color-secondary); }
  .border-primary { border-color: var(--color-primary); }
  .border-secondary { border-color: var(--color-secondary); }
  .shadow-primary {
    box-shadow: 0 4px 6px -1px rgba(0,130,60,0.1), 0 2px 4px -1px rgba(0,130,60,0.06);
  }
  
  /* Font weight utilities */
  .font-normal { font-weight: 400 !important; }
  .font-bold { font-weight: 700 !important; }
  .font-extrabold { font-weight: 800 !important; }
  
  /* Shadow utilities */
  .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  }
  .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  }
  .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  }
  
  /* Transition utilities */
  .transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .duration-150 {
    transition-duration: 150ms !important;
  }
  .duration-200 {
    transition-duration: 200ms !important;
  }
  .duration-300 {
    transition-duration: 300ms !important;
  }
  
  /* Transform utilities */
  .transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
  }
  .-translate-y-1 {
    --tw-translate-y: -0.25rem !important;
  }
  .-translate-y-2 {
    --tw-translate-y: -0.5rem !important;
  }
  .translate-y-0 {
    --tw-translate-y: 0px !important;
  }
  .translate-x-1 {
    --tw-translate-x: 0.25rem !important;
  }
  .scale-110 {
    --tw-scale-x: 1.1 !important;
    --tw-scale-y: 1.1 !important;
  }
  
  /* Opacity utilities */
  .opacity-0 {
    opacity: 0 !important;
  }
  .opacity-100 {
    opacity: 1 !important;
  }
  
  /* Transition timing functions */
  .ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;
  }
  .ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;
  }
  
  /* Backdrop blur utilities */
  .backdrop-blur-sm {
    backdrop-filter: blur(4px) !important;
  }
  
  /* Background opacity utilities */
  .bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  
  /* Gradient utilities */
  .from-secondary\/80 {
    --tw-gradient-from: rgba(26, 60, 52, 0.8) !important;
    --tw-gradient-to: rgba(26, 60, 52, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
  }
  .via-secondary\/60 {
    --tw-gradient-to: rgba(26, 60, 52, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), rgba(26, 60, 52, 0.6), var(--tw-gradient-to) !important;
  }
  .to-secondary\/40 {
    --tw-gradient-to: rgba(26, 60, 52, 0.4) !important;
  }
  
  /* Animation utilities */
  .animate-bounce {
    animation: bounce 1s infinite !important;
  }
  
  .animate-spin {
    animation: spin 1s linear infinite !important;
  }
  
  @keyframes bounce {
    0%, 100% {
      transform: translateY(-25%);
      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
      transform: translateY(0);
      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Form utilities */
  .placeholder-secondary\/60::placeholder {
    color: rgba(26, 60, 52, 0.6) !important;
  }
  
  /* Focus ring utilities */
  .focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(0, 130, 60, 0.5) !important;
  }
  
  .focus\:ring-primary:focus {
    box-shadow: 0 0 0 2px rgba(0, 130, 60, 0.5) !important;
  }
  
  /* Disabled utilities */
  .disabled\:opacity-50:disabled {
    opacity: 0.5 !important;
  }
  
  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed !important;
  }
  
  /* Success message utilities */
  .bg-green-100 {
    background-color: #dcfce7 !important;
  }
  
  .border-green-400 {
    border-color: #4ade80 !important;
  }
  
  .text-green-700 {
    color: #15803d !important;
  }
  
  /* Error message utilities */
  .text-red-400 {
    color: #f87171 !important;
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  25% {
    transform: scale(1.1);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0.7;
  }
  75% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.animate-heartbeat {
  animation: heartbeat 2s infinite;
}
