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

@font-face {
  font-family: "Cocogoose-Pro-Bold-trial";
  src: url("/assets/fonts/Cocogoose-Pro-Bold-trial.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;

    /* Primary colors */
    --primary-50: #e3ecf7;
    --primary-100: #c7d9ef;
    --primary-200: #8fb3df;
    --primary-300: #588dcc;
    --primary-400: #2667ba;
    --primary-500: #05438e; /* Main primary color */
    --primary-600: #043977;
    --primary-700: #032f61;
    --primary-800: #02264b;
    --primary-900: #011c36;

    /* Secondary colors */
    --secondary-50: #fbfcff;
    --secondary-100: #f8f8fd;
    --secondary-200: #f1f3fb;
    --secondary-300: #eaeef8;
    --secondary-400: #e3e8f5;
    --secondary-500: #c1cfe6;
    --secondary-600: #afb8d0;
    --secondary-700: #8c94a7;
    --secondary-800: #6a7184;
    --secondary-900: #4a4f61;

    /* Accent colors */
    --accent-50: #fafafa;
    --accent-100: #f5f5f5;
    --accent-200: #e5e5e5;
    --accent-300: #d4d4d4;
    --accent-400: #a3a3a3;
    --accent-500: #737373;
    --accent-600: #525252;
    --accent-700: #404040;
    --accent-800: #262626;
    --accent-900: #171717;

    /* Neutral colors */
    --neutral-50: #f9f9fa;
    --neutral-100: #f1f1f3;
    --neutral-200: #e2e3e7;
    --neutral-300: #d4d6da;
    --neutral-400: #b8bbc3;
    --neutral-500: #9ca0aa;
    --neutral-600: #888d96;
    --neutral-700: #6c7178;
    --neutral-800: #4f5359;
    --neutral-900: #33363b;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: #d4d6da;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer utilities {
  /* Hide scrollbar for Chrome, Safari and Opera */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  .no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
}

/* @layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
} */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  border-color: var(--neutral-300);
  background: white;
  @apply text-black;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  @apply font-sans; /* Assuming you have a 'font-heading' class defined elsewhere */
}

h1 {
  @apply text-4xl md:text-6xl font-bold; /* Heading 1 - Large, Bold */
}

h2 {
  @apply text-3xl md:text-4xl font-bold; /* Heading 2 - Slightly smaller than H1, Bold */
}

h3 {
  @apply text-lg md:text-2xl font-semibold tracking-tight; /* Heading 3 - Smaller than H2, Semi-bold */
}

h4 {
  @apply text-lg md:text-xl font-bold tracking-tight; /* Heading 4 - Smaller than H3, Medium weight */
}

h5 {
  @apply text-base font-bold tracking-tight; /* Heading 5 - Base text size, Medium weight */
}

h6 {
  @apply text-base font-semibold; /* Heading 6 - Small text size, Medium weight */
}

.icon {
  @apply mr-2 h-5 w-5;
}

.truncate-text-1,
.truncate-text-2,
.truncate-text-3,
.truncate-text-4,
.truncate-text-5 {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.truncate-text-1 {
  -webkit-line-clamp: 1;
}

.truncate-text-2 {
  -webkit-line-clamp: 2;
}

.truncate-text-3 {
  -webkit-line-clamp: 3;
}

.truncate-text-4 {
  -webkit-line-clamp: 4;
}

.truncate-text-5 {
  -webkit-line-clamp: 5;
}

.animate-shimmer {
  animation: shimmer 1s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  25% {
    background-position: -100px 0;
  }
  50% {
    background-position: 0 0;
  }
  75% {
    background-position: 100px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.animate-shimmer-container {
  animation-delay: 0.2s;
}

.lucide .icon {
  margin: 0 !important;
}

/* Loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 20px;
}

.loader-circle {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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