/* Thaiger CMS Frontend v3.2.114 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@400;500;600;700&display=swap');

*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; }
html { line-height: 1.5; font-family: 'IBM Plex Sans Thai Looped', sans-serif; }
body { margin: 0; }

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-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%;
  --border: 214.3 31.8% 91.4%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
}

body { background-color: hsl(var(--background)); color: hsl(var(--foreground)); }
.min-h-screen { min-height: 100vh; }

/* Modal styles */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: white; border-radius: 12px; padding: 24px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #6b7280; }

/* Form styles */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #374151; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 6px; font-size: 14px; }
.form-input:focus { outline: none; border-color: hsl(var(--primary)); }
.form-textarea { min-height: 100px; resize: vertical; }

/* Button styles */
.btn { padding: 10px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.btn-outline { background: transparent; border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.btn:hover { opacity: 0.9; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Table styles */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid hsl(var(--border)); }
.data-table th { background: hsl(var(--muted)); font-weight: 600; font-size: 13px; }
.data-table tr:hover { background: hsl(var(--muted) / 0.5); }

/* Card styles */
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 20px; }

/* Dropdown styles */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background: white; min-width: 160px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border-radius: 8px; z-index: 100; border: 1px solid hsl(var(--border)); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-item { display: block; padding: 10px 16px; text-decoration: none; color: hsl(var(--foreground)); font-size: 14px; }
.dropdown-item:hover { background: hsl(var(--muted)); }

/* Badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }

/* Loading */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
