/**
 * ============================================================================
 * Clean & Professional Corporate Theme — Multipurpose Tool Suite
 * ============================================================================
 * โทนสีมาตรฐานเดียวกับหน้า index.html:
 * - พื้นหลัง: #FFFFFF & #F8FAFC
 * - สีหลัก: Vibrant Blue Gradient (#00A8FF -> #0056D2)
 * - สีรอง/หัวข้อ: Deep Navy (#1E293B)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

:root {
  --corp-bg: #F8FAFC;
  --corp-surface: #FFFFFF;
  --corp-navy: #1E293B;
  --corp-cyan: #00A8FF;
  --corp-blue: #0056D2;
  --corp-border: #E2E8F0;
}

/* Unified Typography */
html, body, h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, label, input, select, textarea, button {
  font-family: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

code, pre, kbd, samp, .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.fa, .fas, .far, .fal, .fab, [class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Clean White & Light Slate Base */
html, body {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
}

/* Top Hub Navigation Bar (Corporate White + Vibrant Blue Gradient Pill) */
#mpt-hub-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
  color: #1E293B !important;
}

#mpt-hub-bar a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #00A8FF 0%, #0056D2 100%) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#mpt-hub-bar a:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 86, 210, 0.35) !important;
}

#mpt-hub-bar span {
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Harmonize Dark Surfaces to Corporate White / Light Slate */
html.dark body,
.bg-\[\#0B0F19\],
.bg-\[\#0b0f19\],
.bg-\[\#070B14\],
.bg-darkBg {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
}

.bg-\[\#111827\],
.bg-\[\#0F172A\],
.bg-\[\#0B1120\],
.bg-cardBg,
.bg-slate-900,
.bg-gray-900,
.bg-slate-800,
.bg-gray-800 {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border-color: #E2E8F0 !important;
}

/* Keep Sidebars in Sleek Deep Navy (#1E293B) with Vibrant Blue Active States */
aside {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
}

aside .sidebar-active,
aside .active {
  background: linear-gradient(135deg, #00A8FF 0%, #0056D2 100%) !important;
  color: #FFFFFF !important;
}

/* Form Controls */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
  border-color: #CBD5E1 !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #00A8FF !important;
  outline-color: #00A8FF !important;
}

/* Primary Buttons */
.bg-blue-600, .bg-sky-600, .bg-indigo-600 {
  background: linear-gradient(135deg, #00A8FF 0%, #0056D2 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
}

/* Text Contrast Helpers */
.text-white:not(button):not(a):not(aside *):not(.bg-blue-gradient *):not([class*="bg-sky-"] *):not([class*="bg-blue-"] *):not([class*="bg-emerald-"] *):not([class*="bg-red-"] *):not([class*="bg-orange-"] *) {
  color: #1E293B !important;
}

.text-slate-300:not(aside *),
.text-slate-400:not(aside *),
.text-gray-300:not(aside *),
.text-gray-400:not(aside *) {
  color: #475569 !important;
}
