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

body {
  font-family: Arial, Helvetica, sans-serif;
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

/* print.css */
@media print {
  body * {
    visibility: hidden;
  }

  .certificate-wrapper,
  .certificate-wrapper * {
    visibility: visible;
  }

  .certificate-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 297mm;
    height: 210mm;
  }

  @page {
    size: A4 landscape;
    margin: 0;
  }

  html,
  body {
    margin: 0;
    padding: 0;
  }
}

/* media */
@media (max-width: 768px) {
  .card-content {
    font-weight: bold;
    font-size: 10px;
  }
}

@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%;

    /* MAIN THEME COLOR (#1B3261) */
    --primary: 221 56% 24%;
    --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: 221 56% 24%;
    --accent-foreground: 210 40% 98%;

    --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: 221 56% 24%;

    --radius: 0.5rem;

    /* Charts */
    --chart-1: 221 56% 24%;
    --chart-2: 221 46% 34%;
    --chart-3: 221 36% 44%;
    --chart-4: 221 26% 54%;
    --chart-5: 221 16% 64%;

    /* Sidebar */
    --sidebar-background: 221 56% 24%;
    --sidebar-foreground: 0 0% 98%;

    --sidebar-primary: 0 0% 100%;
    --sidebar-primary-foreground: 221 56% 24%;

    --sidebar-accent: 221 40% 30%;
    --sidebar-accent-foreground: 0 0% 100%;

    --sidebar-border: 221 40% 30%;
    --sidebar-ring: 221 56% 24%;
  }

  .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%;

    /* DARK MODE PRIMARY */
    --primary: 221 56% 40%;
    --primary-foreground: 0 0% 100%;

    --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: 221 56% 40%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;

    --ring: 221 56% 40%;

    /* Charts */
    --chart-1: 221 56% 50%;
    --chart-2: 221 46% 60%;
    --chart-3: 221 36% 70%;
    --chart-4: 221 26% 80%;
    --chart-5: 221 16% 90%;

    /* Sidebar */
    --sidebar-background: 221 56% 18%;
    --sidebar-foreground: 0 0% 98%;

    --sidebar-primary: 221 56% 50%;
    --sidebar-primary-foreground: 0 0% 100%;

    --sidebar-accent: 221 40% 25%;
    --sidebar-accent-foreground: 0 0% 100%;

    --sidebar-border: 221 40% 25%;
    --sidebar-ring: 221 56% 50%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }
}