:root {
  --solar-dark: #1F3864;
  --solar-blue: #2E75B6;
  --solar-orange: #ED7D31;
  --solar-green: #70AD47;
  --solar-yellow: #FFD966;
  --solar-light: #F0F4F8;
  --solar-card: #FFFFFF;
}
body { font-family: 'Sarabun', 'Arial', sans-serif; background: var(--solar-light); color: #2d3748; }

/* NAV */
.navbar { background: var(--solar-dark) !important; }
.navbar-brand { font-weight: 700; font-size: 1.1rem; color: var(--solar-yellow) !important; }
.nav-link { color: rgba(255,255,255,.85) !important; }
.nav-link:hover { color: var(--solar-yellow) !important; }

/* SIDEBAR */
.sidebar { min-height: calc(100vh - 56px); background: var(--solar-dark); padding-top: 1rem; }
.sidebar .nav-link { color: rgba(255,255,255,.75); padding: .6rem 1.2rem; border-radius: 6px; margin: 2px 8px; font-size: .9rem; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: var(--solar-blue); color: #fff; }
.sidebar .nav-link i { width: 20px; }

/* KPI CARDS */
.kpi-card { border-radius: 12px; padding: 1.2rem 1.4rem; color: #fff; position: relative; overflow: hidden; }
.kpi-card .kpi-val { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kpi-card .kpi-lbl { font-size: .78rem; opacity: .85; margin-bottom: .2rem; }
.kpi-card .kpi-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; opacity: .15; }
.kpi-blue   { background: linear-gradient(135deg, #2E75B6, #1F3864); }
.kpi-orange { background: linear-gradient(135deg, #ED7D31, #C55A11); }
.kpi-green  { background: linear-gradient(135deg, #70AD47, #375623); }
.kpi-teal   { background: linear-gradient(135deg, #17a2b8, #117a8b); }
.kpi-purple { background: linear-gradient(135deg, #7030A0, #4B0082); }
.kpi-red    { background: linear-gradient(135deg, #C00000, #800000); }

/* PROGRESS BAR */
.progress { height: 10px; border-radius: 8px; }
.progress-bar-solar { background: var(--solar-blue); }

/* CARDS */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card-header { background: var(--solar-dark); color: #fff; border-radius: 12px 12px 0 0 !important; font-weight: 600; }
.card-header.orange { background: var(--solar-orange); }
.card-header.green  { background: var(--solar-green); }
.card-header.blue   { background: var(--solar-blue); }

/* TABLE */
.table thead th { background: var(--solar-dark); color: #fff; font-size: .82rem; white-space: nowrap; border: none; }
.table-hover tbody tr:hover { background: #e8f0fe; }
.table td, .table th { vertical-align: middle; }
.wbs-phase td { background: var(--solar-blue) !important; color: #fff !important; font-weight: 700; }
.wbs-sub td { background: #EFF6FB; padding-left: 2.5rem !important; }

/* STATUS BADGES */
.badge-done    { background: #d4edda; color: #155724; }
.badge-inprog  { background: #d1ecf1; color: #0c5460; }
.badge-delayed { background: #f8d7da; color: #721c24; }
.badge-pending { background: #e2e3e5; color: #383d41; }

/* PROGRESS INPUT */
.progress-input { width: 70px; text-align: center; border: 1px solid #ccc; border-radius: 6px; padding: 2px 4px; }

/* FORM */
.form-label { font-weight: 600; font-size: .85rem; color: #4a5568; }
.section-hdr { background: var(--solar-dark); color: #fff; padding: .5rem 1rem; border-radius: 8px; font-weight: 700; margin: 1.5rem 0 .8rem; font-size: .9rem; }

/* BUTTONS */
.btn-solar { background: var(--solar-blue); color: #fff; border: none; }
.btn-solar:hover { background: var(--solar-dark); color: #fff; }
.btn-orange { background: var(--solar-orange); color: #fff; border: none; }
.btn-orange:hover { background: #C55A11; color: #fff; }

/* PROJECT CARD */
.project-card { transition: transform .15s, box-shadow .15s; cursor: pointer; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.project-card .proj-progress-bar { height: 6px; border-radius: 3px; }

/* CLAIM TABLE */
.claim-paid   { background: #d4edda !important; }
.claim-approv { background: #d1ecf1 !important; }
.claim-sub    { background: #fff3cd !important; }

/* CHART CONTAINER */
.chart-wrap { position: relative; height: 280px; }

/* FOOTER */
footer { text-align: center; padding: 1rem; color: #999; font-size: .8rem; margin-top: 3rem; }

/* RESPONSIVE */
@media (max-width:768px) {
  .sidebar { display: none; }
  .kpi-val { font-size: 1.5rem; }
}
