/* EduFAS Design System — based on Edusmart Finance Manager design */
:root {
  --navy:     #08083f;
  --navy-2:   #11145c;
  --cyan:     #28c9c7;
  --cyan-soft:#e8fbfb;
  --green:    #36d629;
  --red:      #ff241b;
  --amber:    #ffb020;
  --purple:   #7b61ff;
  --bg:       #f5f7fb;
  --card:     #ffffff;
  --muted:    #697187;
  --line:     #e5eaf2;
  --shadow:   0 16px 42px rgba(8,8,63,.12);
  --radius:   22px;
  --sidebar-w:292px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--navy); font-family: Arial, Helvetica, sans-serif; }

/* ── Layout ── */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; max-width: 1520px; margin: 0 auto; }

/* ── Sidebar ── */
aside { background: var(--navy); color: white; padding: 26px 20px; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.logo-card { background: white; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.logo-card img { width: 100%; display: block; }
.role-card { background: rgba(40,201,199,.15); border: 1px solid rgba(40,201,199,.35); border-radius: 18px; padding: 14px; margin-bottom: 24px; line-height: 1.4; font-size: 13px; }
.role-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.menu-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.35px; color: rgba(255,255,255,.5); margin: 22px 8px 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; border-radius: 15px; padding: 12px 13px; margin-bottom: 7px; color: rgba(255,255,255,.86); font-size: 14px; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: rgba(255,255,255,.08); }
.menu-item.active { background: linear-gradient(135deg, var(--cyan), #52ece1); color: var(--navy); font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
.dot.green  { background: var(--green); }
.dot.red    { background: var(--red); }
.dot.amber  { background: var(--amber); }
.dot.purple { background: var(--purple); }

/* ── Main content ── */
main { padding: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.heading h1 { font-size: 34px; line-height: 1.1; margin-bottom: 8px; }
.heading p  { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 900px; }

/* ── Profile pill ── */
.profile { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; box-shadow: 0 10px 22px rgba(8,8,63,.06); white-space: nowrap; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--green)); color: white; font-weight: 900; font-size: 15px; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(8,8,63,.06); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(8,8,63,.06); padding: 23px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-header h2 { font-size: 20px; }

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(8,8,63,.06); padding: 20px; }
.stat small { display: block; color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 9px; }
.stat strong { font-size: 28px; display: block; margin-bottom: 7px; }
.stat span { color: var(--muted); font-size: 12px; line-height: 1.35; }

/* ── Buttons ── */
.btn { border: 0; border-radius: 999px; padding: 10px 20px; background: var(--navy); color: white; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: filter 0.15s ease; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost:hover { background: var(--cyan-soft, rgba(0,0,0,0.03)); filter: none; }
.btn.cyan  { background: var(--cyan); color: var(--navy); }
.btn.red   { background: var(--red); }
.btn.green { background: var(--green); color: var(--navy); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--navy); }
.btn.sm    { padding: 7px 14px; font-size: 12px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--navy); color: white; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
thead th:first-child { border-radius: 12px 0 0 0; }
thead th:last-child  { border-radius: 0 12px 0 0; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:hover { background: var(--cyan-soft); }
tbody td { padding: 12px 16px; color: var(--navy); }

/* ── Badges ── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.green  { background: rgba(54,214,41,.15);  color: #177c11; }
.badge.red    { background: rgba(255,36,27,.12);   color: #b51610; }
.badge.amber  { background: rgba(255,176,32,.18);  color: #8b5a00; }
.badge.purple { background: rgba(123,97,255,.15);  color: #4a36b2; }
.badge.cyan   { background: var(--cyan-soft);      color: var(--navy); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 14px; font-family: inherit;
  background: white; color: var(--navy); outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--cyan);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; }
.alert.success { background: rgba(54,214,41,.12); border: 1px solid rgba(54,214,41,.3); color: #177c11; }
.alert.error   { background: rgba(255,36,27,.10); border: 1px solid rgba(255,36,27,.3); color: #b51610; }
.alert.info    { background: var(--cyan-soft); border: 1px solid rgba(40,201,199,.3); color: var(--navy); }
.alert.warning { background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.3); color: #8b5a00; }

/* ── Utility ── */
.mt-1 { margin-top: 8px; }   .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--muted); font-size: 13px; }
.text-right { text-align: right; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.w-full { width: 100%; }
