/* ===========================================================
   🌐 GLOBAL FONT & ICON STYLES
   =========================================================== */
body {
  font-family: 'Kanit', sans-serif;
  background-color: #f6f7fb;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ✅ Google Material Symbols (icon) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 40;
  vertical-align: middle;
}

/* ===========================================================
   🧭 NAVBAR & GENERAL UI
   =========================================================== */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.text-muted {
  color: #6c757d !important;
}

/* Footer Links */
footer a {
  color: #6c757d;
  transition: color 0.2s ease;
}
footer a:hover {
  text-decoration: underline;
  color: #333;
}

/* ======================================================
   🌓 DARK MODE SUPPORT
   ====================================================== */

/* Default: Light Mode */
:root {
  --bg-color: #f6f7fb;
  --text-color: #333;
  --card-bg: #fff;
  --navbar-bg: #212529;
  --footer-bg: #f8f9fa;
}

/* 🌙 Dark Mode */
html[data-theme='dark'] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --navbar-bg: #1b1b1b;
  --footer-bg: #202020;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.card {
  background-color: var(--card-bg);
  color: var(--text-color);
}

.navbar {
  background-color: var(--navbar-bg) !important;
}

footer {
  background-color: var(--footer-bg) !important;
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}
/* ======================================================
   🎨 THEME PRESETS (PRIMARY COLOR)
   ====================================================== */
:root {
  --primary-color: #3B82F6; /* DLTV Blue (default) */
}

/* ใช้สีหลักกับปุ่มและหัวข้อ */
.btn-primary,
.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

a,
.text-primary {
  color: var(--primary-color) !important;
}

h3, h4, h5, h6 {
  color: var(--primary-color);
}

/* เน้นสีการ์ด/กราฟ */
.stat-card {
  border-top: 4px solid var(--primary-color);
}


/* ======================================================
   📊 DASHBOARD & CHARTS
   ====================================================== */
.stat-card h6 {
  font-size: 0.9rem;
  color: var(--text-color);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stat-card h3 {
  font-weight: 700;
  margin-top: 0.25rem;
  font-size: 1.8rem;
}

/* Chart container */
#monthlyChart {
  max-height: 350px;
}

/* ======================================================
   💫 UTILITY CLASSES
   ====================================================== */
.shadow-hover:hover {
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

.text-primary {
  color: #007bff !important;
}

.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}
/* ===========================================================
   📢 ANNOUNCEMENT STYLES
   =========================================================== */
.announcement.highlight {
  background: rgba(255, 235, 59, 0.1);
  border-left: 5px solid var(--primary-color);
  padding-left: 10px;
  border-radius: 8px;
}

.announcement img {
  max-height: 200px;
  object-fit: cover;
}

.announcement button {
  font-size: 0.85rem;
}
