:root{
  --blue:#156d98;       /* Empower FS Blue */
  --gold:#cdb92c;       /* Empower FS Gold */
  --bg:#F6F8FB;
  --card:#FFFFFF;
  --text:#0F172A;
  --muted:#64748B;
  --border:#E5E7EB;
}

/* Global */
*{box-sizing:border-box}
html,body{
  margin:0;
  height:100%;
  font-family:Inter,system-ui,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none;}

/* Header */
.header{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  border-bottom:1px solid var(--border);
  background:#fff;
  position:sticky;
  top:0;
  z-index:5;
}
.header-left{display:flex;align-items:center;gap:12px;}
.header-title{margin:0;font-weight:700;letter-spacing:.2px;color:var(--text);}
.logo{height:40px;}
.logout{
  height:36px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  transition:all .2s;
}
.logout:hover{background:#f1f5f9;border-color:var(--blue);color:var(--blue);}

/* Layout */
.layout{
  display:flex;
  min-height:calc(100vh - 64px);
}
.sidebar{
  width:240px;
  background:#fff;
  border-right:1px solid var(--border);
  padding:14px 10px;
  position:sticky;
  top:64px;
  height:calc(100vh - 64px);
}
.sidebar .group-title{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  margin:16px 10px 8px;
  letter-spacing:0.4px;
}
.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:0 6px;
}
.nav button{
  text-align:left;
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  transition:all 0.2s;
  font-weight:500;
}
.nav button:hover{
  background:#f1f5f9;
  border-color:var(--blue);
  color:var(--blue);
}
.nav button.active{
  border-color:var(--blue);
  background:#e0f2fe;
  color:var(--blue);
  font-weight:600;
}
.badge{
  margin-left:8px;
  background:var(--gold);
  color:#fff;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
}

/* Content */
.content{
  flex:1;
  padding:22px;
  max-width:1200px;
  margin:0 auto;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  margin-bottom:16px;
}
.card h3{margin:0 0 12px;color:var(--text);}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;}
.col-12{grid-column:span 12;}
.col-6{grid-column:span 6;}
@media (max-width:900px){.sidebar{width:210px}.col-6{grid-column:span 12;}}

/* Forms + Buttons */
.input,.select,.btn{
  height:40px;
  border-radius:10px;
  border:1px solid var(--border);
  padding:0 12px;
  outline:none;
  font-size:15px;
}
.input:focus,.select:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 2px rgba(21,109,152,0.15);
}
.btn{
  cursor:pointer;
  font-weight:600;
  transition:all 0.25s ease;
}
.btn.primary{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}
.btn.primary:hover{
  background:#0d5d7f;
  transform:translateY(-1px);
}
.btn.ghost{background:#fff;}
.btn.sm{height:34px;padding:0 10px;font-size:14px;}

/* Tables */
.table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}
.table th,.table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{
  background:#f9fafb;
  font-weight:600;
  color:var(--muted);
}
.status{
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--border);
  background:#f8fafc;
}
.status.progress{border-color:#fde68a;background:#fffbeb;}
.status.closed{border-color:#bbf7d0;background:#f0fdf4;}

/* Footer */
.footer{
  padding:16px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:#fff;
}

/* Login Page */
.page-center{
  display:grid;
  place-items:center;
  min-height:100vh;
}
.login-card{
  width:100%;
  max-width:520px;     /* larger login box */
  padding:40px 36px;
  border-radius:16px;
}
.title{
  margin:12px 0 4px;
  color:var(--blue);
}
.subtitle{
  margin:0 0 8px;
  color:var(--muted);
}
