@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =================================
   PROFESSIONAL THEME ADDITIONS
   ================================= */
/* Import Inter font for professional typography */
/* Utility classes for consistent spacing */
.mb-0 {
  margin-block-end: 0;
}
.mb-1 {
  margin-block-end: var(--space-1);
}
.mb-2 {
  margin-block-end: var(--space-2);
}
.mb-3 {
  margin-block-end: var(--space-3);
}
.mb-4 {
  margin-block-end: var(--space-4);
}
.mt-1 {
  margin-block-start: var(--space-1);
}
.mt-4 {
  margin-block-start: var(--space-4);
}
/* Text utilities */
.text-xs {
  font-size: var(--font-size-xs);
}
.text-sm {
  font-size: var(--font-size-sm);
}
.text-base {
  font-size: var(--font-size-base);
}
.text-lg {
  font-size: var(--font-size-lg);
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-gray-500 {
  color: var(--color-gray-500);
}
.text-gray-400 {
  color: var(--color-gray-400);
}
.text-gray-300 {
  color: var(--color-gray-300);
}
.text-gray-200 {
  color: var(--color-gray-200);
}
.text-gray-100 {
  color: var(--color-gray-100);
}
/* Flex utilities - reducing duplication */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
/* Grid utilities */
.grid {
  display: grid;
}
/* Gap utilities */
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
/* Common card pattern */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}
.card-header {
  padding-block: var(--space-4);
  padding-inline: var(--space-5);
  border-block-end: 1px solid var(--color-border);
}
.card-footer {
  padding-block: var(--space-4);
  padding-inline: var(--space-5);
  border-block-start: 1px solid var(--color-border);
  background: var(--color-gray-50);
  border-end-start-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-lg);
}
/* Common button patterns */
/* Common form patterns */
.bg-gray-100 {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}
.border-t {
  border-top: 1px solid var(--color-border);
}
.border-gray-100 {
  border-color: var(--color-gray-200);
}
.rounded {
  border-radius: var(--radius-md);
}
.p-2 {
  padding: var(--space-2);
}
.pt-4 {
  padding-top: var(--space-4);
}
.w-full {
  width: 100%;
}
.text-left {
  text-align: left;
}
.py-2 {
  padding-block: var(--space-2);
}
.px-1 {
  padding-inline: var(--space-1);
}
.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.hover\:text-white:hover {
  color: #fff;
}
/* CSS Custom Properties for theme consistency */
:root {
  /* Colors - Centralized color system */
  --color-gray-50: #f3f8f2;
  --color-gray-100: #edf3ec;
  --color-gray-200: #dce6da;
  --color-gray-300: #d4e3d0;
  --color-gray-400: #b8ceb3;
  --color-gray-500: #95ad90;
  --color-gray-600: #36433a;
  --color-gray-700: #253227;
  --color-gray-800: #18231a;
  --color-gray-900: #111811;

  /* Primary accent (forest, darker than #3b5937) */
  --color-blue-50: #edf3ec;
  --color-blue-100: #dbe6d9;
  --color-blue-300: #aac0a6;
  --color-blue-500: #3b5937;
  --color-blue-600: #355033;
  --color-blue-700: #2d442a;
  --color-accent-gradient: linear-gradient(135deg, #3b5937 0%, #2d442a 100%);
  --color-accent-gradient-hover: linear-gradient(135deg, #324d30 0%, #263822 100%);
  --color-accent-soft-bg: rgb(53, 80, 51, 0.12);
  --color-accent-soft-border: rgb(53, 80, 51, 0.35);

  /* Success */
  --color-green-50: #f0fdf4;
  --color-green-600: #059669;
  --color-green-700: #047857;

  /* Danger */
  --color-red-50: #fef2f2;
  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;

  /* Warning */
  --color-yellow-50: #fefce8;
  --color-yellow-600: #d97706;
  --color-yellow-700: #b45309;

  /* Semantic colors */
  --color-background: var(--color-gray-900);
  --color-surface: var(--color-gray-800);
  --color-border: var(--color-gray-700);
  --color-border-hover: var(--color-gray-600);
  --color-text-primary: var(--color-gray-100);
  --color-text-secondary: var(--color-gray-300);
  --color-text-muted: var(--color-gray-400);
  --color-ink-primary: var(--color-gray-700);
  --color-ink-secondary: var(--color-gray-600);
  --color-ink-muted: var(--color-gray-500);
  --color-surface-light: #fff;
  --color-background-light: var(--color-gray-50);
  --color-border-light: var(--color-gray-200);
  --color-border-light-hover: var(--color-gray-300);

  /* Overlays & Hover Effects */
  --color-overlay-subtle: rgba(255, 255, 255, 0.03);
  --color-overlay-medium: rgba(255, 255, 255, 0.06);
  --color-overlay-strong: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Typography */
  --font-family-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px 0 rgb(0, 0, 0, 0.1), 0 1px 2px 0 rgb(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px -1px rgb(0, 0, 0, 0.1), 0 2px 4px -1px rgb(0, 0, 0, 0.06);

  /* Screenshot Elements */
  --screenshot-north-arrow-size: 60px;
  --screenshot-north-arrow-margin: 20px;
  --screenshot-north-arrow-length: 0.6;
  --screenshot-north-arrow-width: 0.15;
  --screenshot-scale-bar-max-width: 150px;
  --screenshot-scale-bar-height: 8px;
  --screenshot-scale-bar-margin: 20px;
  --screenshot-scale-bar-padding: 10px;
  --screenshot-scale-bar-bg-height: 50px;
  --screenshot-attribution-margin: 16px;
  --screenshot-bg-white: rgb(255, 255, 255, 0.9);
  --screenshot-border-gray: rgb(0, 0, 0, 0.3);
  --screenshot-text-black: #000;
  --screenshot-arrow-red: #DC2626;
}
/* Global focus styles for accessibility */
body.af-theme-scope *:focus {
  outline: 2px solid var(--color-blue-600);
  outline-offset: 2px;
}
body.af-theme-scope button:focus,
body.af-theme-scope input:focus,
body.af-theme-scope select:focus,
body.af-theme-scope textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-soft-bg);
}
/* Scrollbar styling for webkit browsers */
body.af-theme-scope ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.af-theme-scope ::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
}
body.af-theme-scope ::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-lg);
}
body.af-theme-scope ::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}
/* Professional spacing and typography improvements */
body.af-theme-scope h1,
body.af-theme-scope h2,
body.af-theme-scope h3,
body.af-theme-scope h4,
body.af-theme-scope h5,
body.af-theme-scope h6 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
body.af-theme-scope p {
  line-height: 1.6;
}
/* Professional form styling */
body.af-theme-scope input[type="text"],
body.af-theme-scope input[type="email"],
body.af-theme-scope input[type="password"],
body.af-theme-scope input[type="number"],
body.af-theme-scope input[type="tel"],
body.af-theme-scope input[type="url"],
body.af-theme-scope textarea,
body.af-theme-scope select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* Fix WebKit Autofill contrast in dark themes */
body.af-theme-scope input:-webkit-autofill,
body.af-theme-scope input:-webkit-autofill:hover, 
body.af-theme-scope input:-webkit-autofill:focus, 
body.af-theme-scope input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--color-surface) inset !important;
    -webkit-text-fill-color: var(--color-text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}
/* Remove default button styling and improve consistency */
body.af-theme-scope button {
  font-family: inherit;
  font-size: inherit;
}
body.af-theme-scope input::placeholder,
body.af-theme-scope textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
/* Professional link styling */
body.af-theme-scope a {
  color: var(--color-blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}
body.af-theme-scope a:hover {
  color: var(--color-blue-700);
}
/* Table improvements for professional look */
body.af-theme-scope table {
  border-collapse: collapse;
  width: 100%;
}
body.af-theme-scope th,
body.af-theme-scope td {
  text-align: start;
  padding: var(--space-3) var(--space-4);
  border-block-end: 1px solid var(--color-gray-200);
}
body.af-theme-scope th {
  font-weight: 600;
  background-color: var(--color-gray-50);
  color: var(--color-ink-primary);
}
/* Professional code block styling */
body.af-theme-scope code,
body.af-theme-scope pre {
  font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
}
body.af-theme-scope code {
  padding-block: var(--space-1);
  padding-inline: var(--space-2);
  font-size: 0.875em;
}
body.af-theme-scope pre {
  padding: var(--space-4);
  overflow-x: auto;
}
body.af-theme-scope pre code {
  padding: 0;
  background: none;
}
/* Professional selection styling */
body.af-theme-scope ::selection {
  background-color: rgb(64, 96, 59, 0.4);
  color: #f3f8f1;
}
