:root {
  --bg-main: #EDF7F6; --bg-card: #FFFFFF; --primary: #0B7285; --primary-dark: #085F6E;
  --accent: #52B788; --accent-light: #B7E4C7; --text-main: #1B2B2E; --text-muted: #5C7A7A;
  --warn: #D9A441; --danger: #C7524A; --border: #D3E8E6; --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter","Segoe UI",Roboto,Arial,sans-serif; background: var(--bg-main); color: var(--text-main); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.navbar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(11,114,133,0.25); }
.navbar .brand { font-weight: 700; font-size: 1.25rem; color: #fff; }
.navbar .nav-links a { color: #E8F7F4; margin-left: 18px; font-weight: 500; }
.navbar .nav-links a:hover { color: #fff; }
.container { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
.card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(11,114,133,0.08); border: 1px solid var(--border); }
h1,h2,h3 { color: var(--primary-dark); }
.btn { display: inline-block; background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #3f9c6d; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #A9433C; }
input[type="text"], input[type="password"], input[type="number"], input[type="file"], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; margin-bottom: 14px; background: #FBFEFE; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
label { font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }

.score-green { color: var(--accent); font-weight: 700; }
.score-blue { color: var(--primary); font-weight: 700; }
.score-yellow { color: var(--warn); font-weight: 700; }
.score-red { color: var(--danger); font-weight: 700; }

.badge { display: inline-block; background: var(--accent-light); color: var(--primary-dark); padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.flash-success { background: #D5F0E0; color: #1F6B45; }
.flash-danger { background: #FBE0DE; color: #A9433C; }
.flash-info { background: #DCEFF3; color: #0B7285; }

.alert-debt { background: #FBE0DE; color: #A9433C; border: 1px solid #F0B4AE; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert-pending { background: #DCEFF3; color: #0B7285; border: 1px solid #B7D9DE; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }

.legend-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.progress-bar { background: var(--border); border-radius: 999px; overflow: hidden; height: 10px; margin-top: 8px; margin-bottom: 6px; }
.progress-fill { height: 100%; border-radius: 999px; }

.topic-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.summary-stat { background: var(--bg-card); border-radius: var(--radius); padding: 18px; text-align: center; border: 1px solid var(--border); }
.summary-stat .value { font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.summary-stat .label { color: var(--text-muted); font-size: 0.85rem; }
