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

:root {
  --jwt-background: 0 0% 100%;
  --jwt-foreground: 222.2 84% 4.9%;
  --jwt-card: 0 0% 100%;
  --jwt-card-foreground: 222.2 84% 4.9%;
  --jwt-popover: 0 0% 100%;
  --jwt-popover-foreground: 222.2 84% 4.9%;
  --jwt-primary: 221.2 83.2% 53.3%;
  --jwt-primary-foreground: 210 40% 98%;
  --jwt-secondary: 210 40% 96%;
  --jwt-secondary-foreground: 222.2 84% 4.9%;
  --jwt-muted: 210 40% 96%;
  --jwt-muted-foreground: 215.4 16.3% 46.9%;
  --jwt-accent: 210 40% 96%;
  --jwt-accent-foreground: 222.2 84% 4.9%;
  --jwt-destructive: 0 84.2% 60.2%;
  --jwt-destructive-foreground: 210 40% 98%;
  --jwt-border: 214.3 31.8% 91.4%;
  --jwt-input: 214.3 31.8% 91.4%;
  --jwt-ring: 221.2 83.2% 53.3%;
  --jwt-radius: 0.5rem;
}

/* WordPress admin compatibility */
#jwt-auth-holder {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    'Helvetica Neue', sans-serif;
  line-height: 1.4;
}

/* Override WordPress admin styles where needed */
#jwt-auth-holder * {
  box-sizing: border-box;
}

/* Ensure our styles take precedence in WordPress admin */
.jwt-card {
  background-color: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 20 14.3% 4.1%;
    --card: 0 0% 100%;
    --card-foreground: 20 14.3% 4.1%;
    --popover: 0 0% 100%;
    --popover-foreground: 20 14.3% 4.1%;
    --primary: 24.6 95% 53.1%;
    --primary-foreground: 60 9.1% 97.8%;
    --secondary: 60 4.8% 95.9%;
    --secondary-foreground: 24 9.8% 10%;
    --muted: 60 4.8% 95.9%;
    --muted-foreground: 25 5.3% 44.7%;
    --accent: 60 4.8% 95.9%;
    --accent-foreground: 24 9.8% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 60 9.1% 97.8%;
    --border: 20 5.9% 90%;
    --input: 20 5.9% 90%;
    --ring: 24.6 95% 53.1%;
    --radius: 0.65rem;
    --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%;
  }

  .dark {
    --background: 20 14.3% 4.1%;
    --foreground: 60 9.1% 97.8%;
    --card: 20 14.3% 4.1%;
    --card-foreground: 60 9.1% 97.8%;
    --popover: 20 14.3% 4.1%;
    --popover-foreground: 60 9.1% 97.8%;
    --primary: 20.5 90.2% 48.2%;
    --primary-foreground: 60 9.1% 97.8%;
    --secondary: 12 6.5% 15.1%;
    --secondary-foreground: 60 9.1% 97.8%;
    --muted: 12 6.5% 15.1%;
    --muted-foreground: 24 5.4% 63.9%;
    --accent: 12 6.5% 15.1%;
    --accent-foreground: 60 9.1% 97.8%;
    --destructive: 0 72.2% 50.6%;
    --destructive-foreground: 60 9.1% 97.8%;
    --border: 12 6.5% 15.1%;
    --input: 12 6.5% 15.1%;
    --ring: 20.5 90.2% 48.2%;
    --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 base {
  * {
    @apply jwt-border-border;
  }
  body {
    @apply jwt-bg-background jwt-text-foreground;
  }
}

.settings_page_jwt_authentication #wpcontent {
  padding-left: 0 !important;
}
