:root{
  --primary:#16b994;
  --secondary:#07115a;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --danger:#dc2626;
  --warning:#d97706;
  --info:#2563eb;
  --success:#16a34a;
  --radius:18px;
  --shadow:0 10px 30px rgba(7,17,90,.08);
  --shadow-soft:0 6px 18px rgba(7,17,90,.06);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{text-decoration:none}
h1,h2,h3,h4{margin:0;font-family:Poppins,sans-serif}
.app-layout{
  display:flex;
  min-height:100vh;
}
.sidebar{
  width:260px;
  background:var(--secondary);
  color:#fff;
  padding:24px 18px;
  position:sticky;
  top:0;
  height:100vh;
}
.sidebar-top{margin-bottom:30px}
.brand-box{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  background:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:20px;
}
.brand-name{font-family:Poppins,sans-serif;font-size:20px;font-weight:700}
.brand-sub{font-size:13px;color:rgba(255,255,255,.7)}
.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nav-link{
  color:rgba(255,255,255,.82);
  padding:12px 14px;
  border-radius:14px;
  transition:.2s ease;
  font-size:14px;
}
.nav-link:hover,
.nav-link.active{
  background:rgba(255,255,255,.12);
  color:#fff;
}
.main-content{
  flex:1;
  padding:28px;
}
.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.page-title{
  font-size:28px;
  color:var(--secondary);
}
.page-meta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}
.page-body{
  display:flex;
  flex-direction:column;
  gap:24px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:14px;
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(22,185,148,.22);
}
.btn-secondary{
  background:#eef2ff;
  color:var(--secondary);
}
.btn-block{width:100%}
.card{
  background:var(--card);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:22px;
  border:1px solid rgba(7,17,90,.05);
}
.card-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
.stat-card{
  background:#fff;
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  padding:22px;
  border:1px solid rgba(7,17,90,.05);
}
.stat-card h3{
  font-size:14px;
  color:var(--muted);
  margin-bottom:12px;
}
.stat-value{
  font-size:32px;
  font-weight:700;
  color:var(--secondary);
}
.table-wrap{
  overflow:auto;
}
.custom-table{
  width:100%;
  border-collapse:collapse;
}
.custom-table th,
.custom-table td{
  text-align:left;
  padding:14px 12px;
  border-bottom:1px solid var(--border);
  font-size:14px;
}
.custom-table th{
  color:var(--muted);
  font-weight:600;
  background:#fafafa;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}
.badge-pending{background:#fef3c7;color:#92400e}
.badge-inprogress{background:#dbeafe;color:#1d4ed8}
.badge-review{background:#ede9fe;color:#6d28d9}
.badge-completed{background:#dcfce7;color:#166534}
.badge-cancelled{background:#fee2e2;color:#991b1b}
.badge-hold{background:#e5e7eb;color:#374151}
.badge-low{background:#e0f2fe;color:#075985}
.badge-medium{background:#fef3c7;color:#92400e}
.badge-high{background:#fed7aa;color:#9a3412}
.badge-urgent{background:#fee2e2;color:#991b1b}
.empty-box{
  padding:18px;
  border-radius:16px;
  background:#f8fafc;
  color:var(--muted);
  border:1px dashed #cbd5e1;
}
.login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at top left, rgba(22,185,148,0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(7,17,90,0.18), transparent 32%),
    #f4f7fb;
}
.login-card,.login-box{
  width:100%;
  max-width:430px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 20px 60px rgba(7,17,90,0.12);
  padding:32px;
  border:1px solid rgba(7,17,90,0.08);
}
.login-logo-wrap,.login-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:28px;
}
.login-logo{
  width:52px;
  height:52px;
  border-radius:16px;
  background:linear-gradient(135deg,#16b994,#0f9f80);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:Poppins,sans-serif;
  font-weight:700;
  font-size:20px;
}
.login-heading h2,.login-head h2{
  margin:0 0 8px;
  font-size:26px;
}
.login-heading p,.login-head p,.login-subtitle,.login-note{
  color:var(--muted);
  font-size:14px;
}
.form-group{margin-bottom:18px}
.form-label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
  font-size:14px;
}
.form-control{
  width:100%;
  border:1px solid rgba(7,17,90,.12);
  border-radius:14px;
  padding:14px 16px;
  font-size:15px;
  outline:none;
  transition:.2s ease;
  background:#fff;
}
.form-control:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(22,185,148,.12);
}
.alert{
  margin-bottom:18px;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
}
.alert-error{
  background:#fef2f2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
@media (max-width: 1024px){
  .stats-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 768px){
  .app-layout{flex-direction:column}
  .sidebar{
    width:100%;
    height:auto;
    position:relative;
  }
  .main-content{padding:18px}
  .topbar{flex-direction:column}
}
@media (max-width: 560px){
  .stats-grid{grid-template-columns:1fr}
}