*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  font-family:Arial, Helvetica, sans-serif;
  background:#0b1220;
  color:#e5e7eb;
}

a{
  text-decoration:none;
}

.login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 30%),
    linear-gradient(135deg, #0b1220, #111827 55%, #0f172a);
}

.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
}

.login-card{
  width:100%;
  max-width:440px;
  background:rgba(17,24,39,0.92);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:22px;
  padding:34px;
  box-shadow:0 25px 60px rgba(0,0,0,0.35);
}

.login-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
}

.login-logo,
.brand-logo{
  width:50px;
  height:50px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
  font-size:26px;
  font-weight:700;
  box-shadow:0 10px 25px rgba(34,197,94,0.35);
}

.login-card h1,
.brand-title{
  margin:0;
  font-size:22px;
  font-weight:700;
}

.login-card p,
.brand-subtitle{
  margin:4px 0 0;
  color:#94a3b8;
  font-size:13px;
}

.login-card h2{
  margin:0 0 20px;
  font-size:22px;
}

.app-shell{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:280px;
  background:#0f172a;
  border-right:1px solid rgba(255,255,255,0.06);
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:25px;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav-link{
  display:block;
  padding:13px 14px;
  border-radius:14px;
  color:#d1d5db;
  background:transparent;
  transition:.2s ease;
  border:1px solid transparent;
}

.nav-link:hover{
  background:#111827;
  border-color:rgba(255,255,255,0.06);
  color:#fff;
}

.nav-link.disabled{
  opacity:.45;
  pointer-events:none;
}

.sidebar-user{
  margin-top:25px;
  padding:16px;
  border-radius:18px;
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
}

.user-name{
  font-weight:700;
  margin-bottom:4px;
}

.user-role{
  color:#94a3b8;
  font-size:13px;
  margin-bottom:14px;
}

.main-content{
  flex:1;
  padding:28px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,0.08), transparent 20%),
    #0b1220;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.topbar h1{
  margin:0 0 6px;
  font-size:30px;
}

.topbar p{
  margin:0;
  color:#94a3b8;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin-bottom:24px;
}

.card{
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:22px;
  padding:22px;
  box-shadow:0 12px 35px rgba(0,0,0,0.18);
}

.card h3{
  margin-top:0;
}

.stat-card{
  position:relative;
  overflow:hidden;
}

.stat-card:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#16a34a,#22c55e);
}

.stat-label{
  color:#94a3b8;
  font-size:14px;
  margin-bottom:8px;
}

.stat-value{
  font-size:30px;
  font-weight:700;
  color:#fff;
}

.table-wrap{
  overflow:auto;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  text-align:left;
  padding:14px 12px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  font-size:14px;
}

.table th{
  color:#cbd5e1;
  font-weight:700;
}

.form-card{
  max-width:900px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.form-group{
  margin-bottom:16px;
}

.form-group label{
  display:block;
  margin-bottom:8px;
  color:#cbd5e1;
  font-size:14px;
  font-weight:700;
}

.form-control{
  width:100%;
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.08);
  color:#fff;
  border-radius:14px;
  padding:13px 14px;
  outline:none;
}

.form-control:focus{
  border-color:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,0.12);
}

.check-wrap{
  display:flex;
  align-items:center;
}

.check-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:normal;
  margin-top:30px;
}

.form-actions{
  display:flex;
  gap:12px;
  margin-top:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:14px;
  padding:12px 18px;
  cursor:pointer;
  font-weight:700;
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-sm{
  padding:8px 12px;
  font-size:12px;
  border-radius:10px;
}

.btn-block{
  width:100%;
}

.btn-primary{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
}

.btn-secondary{
  background:#1f2937;
  color:#fff;
}

.btn-danger{
  background:#b91c1c;
  color:#fff;
}

.alert{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:18px;
  font-size:14px;
}

.alert-success{
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.3);
  color:#dcfce7;
}

.alert-danger{
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.3);
  color:#fee2e2;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.badge-success{
  background:rgba(34,197,94,0.16);
  color:#bbf7d0;
}

.badge-danger{
  background:rgba(239,68,68,0.16);
  color:#fecaca;
}

small{
  display:block;
  margin-top:6px;
  color:#94a3b8;
}

@media (max-width: 980px){
  .app-shell{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
  }

  .grid-2{
    grid-template-columns:1fr;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }
}