/* ============================================================
   FollowBoostPro — Global Stylesheet
   Font: Noto Sans Thai 16px
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 14px;
}

html, body {
  margin: 0; padding: 0;
  background: #f0f4ff;
  color: #1e293b;
}

body { min-height: 100vh; }

/* Override font-size for utility classes that set their own size */
[class*="text-xs"]  { font-size: 12px !important; }
[class*="text-sm"]  { font-size: 14px !important; }
[class*="text-base"]{ font-size: 16px !important; }
[class*="text-lg"]  { font-size: 18px !important; }
[class*="text-xl"]  { font-size: 20px !important; }
[class*="text-2xl"] { font-size: 24px !important; }
[class*="text-3xl"] { font-size: 30px !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 4px; }

/* ── Layout ── */
.sidebar { background: white; border-right: 1px solid #e8edf5; }

/* ── Card ── */
.card {
  background: white;
  border: 1px solid #e8edf5;
  border-radius: 20px;
}

.stat-card {
  background: white;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 16px 20px;
}

/* ── Form inputs ── */
.search-input {
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  border-radius: 12px;
  transition: all 0.25s;
}
.search-input:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

/* ── Toggle switch ── */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #e2e8f0; border-radius: 24px; transition: .25s;
}
.slider:before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%;
  transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input:checked + .slider { background: #6366f1; }
input:checked + .slider:before { transform: translateX(20px); }
.toggle.loading .slider { opacity: .6; pointer-events: none; }

/* ── Badge / Chip ── */
.badge { font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 700; }

.chip {
  padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1.5px solid #e2e8f0; background: white; color: #64748b;
  transition: all .15s;
}
.chip.active, .chip:hover { border-color: #6366f1; color: #4f46e5; background: #eef2ff; }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white; border: none; border-radius: 14px;
  padding: 10px 20px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .2s; box-shadow: 0 4px 12px rgba(99,102,241,.3);
}
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ── Filter button ── */
.filter-btn {
  background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 10px;
  color: #64748b; font-size: 12px; padding: 6px 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: #6366f1; color: #4f46e5; background: #eef2ff;
}

/* ── Platform badge ── */
.pl-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

/* ── Table rows ── */
.svc-row { transition: background .15s; border-bottom: 1px solid #f1f5f9; }
.svc-row:last-child { border-bottom: none; }
.svc-row:hover { background: #f8faff; }
.svc-row.selected { background: #eef2ff; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

/* ── Misc ── */
input[type="checkbox"] { accent-color: #6366f1; }
