/* ============================================================
   Design Tokens — appth.net
   แก้ไขที่นี่ที่เดียว ทุกหน้าอัปเดตอัตโนมัติ
   ============================================================ */

:root {
  /* --- สีหลัก --- */
  --color-primary:       #0ABAB5;
  --color-primary-dark:  #089490;
  --color-primary-light: #E6FAF9;
  --color-primary-muted: rgba(10, 186, 181, 0.12);

  /* --- พื้นหลัง --- */
  --color-bg:      #FFFFFF;
  --color-surface: #F8FFFE;
  --color-surface-alt: #F0FFFE;

  /* --- ขอบ --- */
  --color-border:  #D1F0EE;
  --color-border-strong: #A8E0DC;

  /* --- ข้อความ --- */
  --color-text:    #1A2E2E;
  --color-text-secondary: #3D5C5B;
  --color-muted:   #6B9090;
  --color-white:   #FFFFFF;

  /* --- Status --- */
  --color-danger:  #EF4444;
  --color-warning: #F59E0B;
  --color-success: #10B981;
  --color-info:    #3B82F6;

  /* --- Typography --- */
  --font-sans: 'Inter', 'Noto Sans Thai', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  --font-normal:   400;
  --font-medium:   500;
  --font-semibold: 600;
  --font-bold:     700;

  --leading-tight:  1.25;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* --- Spacing --- */
  --space-1:  0.25rem;  /* 4px  */
  --space-2:  0.5rem;   /* 8px  */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* --- Border Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 3px rgba(10, 186, 181, 0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(10, 186, 181, 0.12), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(10, 186, 181, 0.16), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-xl:  0 16px 48px rgba(10, 186, 181, 0.20), 0 8px 16px rgba(0,0,0,0.10);

  /* --- Transitions --- */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.2s ease;
  --transition-slow:   all 0.3s ease;
  --transition-slower: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Layout --- */
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* --- Topbar --- */
  --topbar-height: 64px;

  /* --- Z-index --- */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-modal:   300;
  --z-toast:   400;
}

/* Dark mode support (อนาคต) */
@media (prefers-color-scheme: dark) {
  /* จงใจเว้นไว้ก่อน — เปิดใช้ทีหลัง */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
