/* ===== Budget System Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --bs-font-sans-serif: 'Sarabun', sans-serif;
}

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #f0f4f8;
  font-size: 15px;
}

/* ---- Login ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a56a7 0%, #0e3b8a 100%);
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.login-card {
  border: 0;
  border-radius: 16px;
}

.login-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56a7, #0e3b8a);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
}

/* ---- Navbar ---- */
.navbar { box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.navbar-brand { font-size: 1.1rem; letter-spacing: .3px; }

/* ---- Container ---- */
.container-fluid { max-width: 1400px; }

/* ---- Cards ---- */
.card { border-radius: 10px; border: 1px solid rgba(0,0,0,.07); }

/* ---- Stat cards ---- */
.stat-card { transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12) !important; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display:flex; align-items:center; justify-content:center; }

.bg-primary-soft { background: rgba(13,110,253,.12); }
.bg-success-soft { background: rgba(25,135,84,.12); }
.bg-warning-soft { background: rgba(255,193,7,.15); }
.bg-info-soft    { background: rgba(13,202,240,.12); }

/* ---- Tables ---- */
.table th { font-weight: 600; font-size: .875rem; }
.table td { font-size: .9rem; vertical-align: middle; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: .8rem; }

/* ---- Badge soft variants ---- */
.bg-warning-subtle  { background: rgba(255,193,7,.15) !important; }
.bg-primary-subtle  { background: rgba(13,110,253,.12) !important; }
.bg-success-subtle  { background: rgba(25,135,84,.12) !important; }
.bg-danger-subtle   { background: rgba(220,53,69,.12) !important; }
.bg-secondary-subtle{ background: rgba(108,117,125,.12) !important; }

/* ---- Progress ---- */
.progress { background-color: #e9ecef; }

/* ---- Alerts ---- */
.alert { border-radius: 8px; }

/* ---- Form controls ---- */
.form-control, .form-select { border-radius: 8px; }
.form-control:focus, .form-select:focus {
  border-color: #1a56a7;
  box-shadow: 0 0 0 .25rem rgba(26,86,167,.2);
}

/* ---- Buttons ---- */
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, #1a56a7, #0e3b8a); border: 0; }
.btn-primary:hover { background: linear-gradient(135deg, #1246a0, #0c3380); }
.btn-success { background: linear-gradient(135deg, #2dc778, #198754); border: 0; }

/* ---- Responsive ---- */
@media (max-width: 576px) {
  .container-fluid { padding: 0 8px; }
  .stat-icon { width: 40px; height: 40px; }
  .fs-5 { font-size: 1rem !important; }
}

/* ---- Print ---- */
@media print {
  .navbar, .no-print, .btn, .breadcrumb { display: none !important; }
  body { background: white; }
  .card { border: 1px solid #dee2e6 !important; box-shadow: none !important; }
}
