@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg-dark:#060713;
  --bg-card:rgba(255,255,255,.04);
  --border-glass:rgba(255,255,255,.08);
  --text:#f8fafc;
  --muted:#94a3b8;
  --blue:#3b82f6;
  --purple:#8b5cf6;
  --green:#22c55e;
  --yellow:#f59e0b;
  --red:#dc2626;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body.admin-body{
  font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--bg-dark);
  color:var(--text);
  min-height:100dvh;
  overflow-x:hidden;
  position:relative;
}

/* Background Glow */
body.admin-body::before{
  content:'';
  position:fixed;
  width:550px;
  height:550px;
  top:-200px;
  left:-200px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(59,130,246,.18), transparent 70%);
  z-index:-1;
}

body.admin-body::after{
  content:'';
  position:fixed;
  width:550px;
  height:550px;
  right:-200px;
  bottom:-200px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(139,92,246,.14), transparent 70%);
  z-index:-1;
}

/* Scrollbar */
::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-track{
  background:#0f172a;
}

::-webkit-scrollbar-thumb{
  background:#2563eb;
  border-radius:20px;
}

/* Sidebar */
#sidebar{
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-right:1px solid rgba(255,255,255,.08);
}

/* Inputs */
input,
textarea,
select{
  width:100%;
  border:none;
  outline:none;
  background:rgba(255,255,255,.04);
  color:white;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  transition:.3s;
}

input::placeholder,
textarea::placeholder{
  color:#94a3b8;
}

input:focus,
textarea:focus,
select:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(59,130,246,.15);
}

/* Dashboard Grid */
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}

/* Main Card */
.card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:28px;
  padding:24px;
  transition:.25s ease;
}

.card:hover{
  transform:translateY(-4px);
  border-color:rgba(59,130,246,.25);
  box-shadow:0 12px 35px rgba(59,130,246,.08);
}

/* Top Row */
.top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.top-row h3{
  font-size:22px;
  font-weight:700;
  color:white;
}

/* Card Content */
.card-content{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card-content p{
  color:#cbd5e1;
  line-height:1.6;
}

/* Description */
.desc{
  color:var(--muted);
  font-size:14px;
  margin-top:8px;
}

/* Status Badge */
.status-badge{
  padding:6px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.status-badge.done{
  background:rgba(34,197,94,.15);
  color:var(--green);
}

.status-badge.pending{
  background:rgba(245,158,11,.15);
  color:var(--yellow);
}

/* Buttons */
button{
  border:none;
  cursor:pointer;
  transition:.25s;
  font-weight:600;
}

button:hover{
  transform:translateY(-2px);
}

.btn-approve{
  background:var(--blue);
  color:white;
  padding:10px 18px;
  border-radius:12px;
}

.btn-delete{
  background:var(--red);
  color:white;
  padding:10px 18px;
  border-radius:12px;
}

/* Actions */
.actions{
  display:flex;
  gap:12px;
  margin-top:22px;
  flex-wrap:wrap;
}

/* Empty Box */
.empty-box{
  background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.08);
  padding:40px;
  border-radius:24px;
  text-align:center;
  color:var(--muted);
}

/* Mobile */
@media(max-width:768px){

  .dashboard-grid{
    grid-template-columns:1fr;
  }

  .card{
    padding:20px;
  }

  input{
    font-size:16px;
  }

  .top-row h3{
    font-size:18px;
  }
}

/* SIDEBAR NAV */
.nav-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.05);
  color:#cbd5e1;
  font-weight:600;
  transition:.25s ease;
}

.nav-btn:hover{
  background:rgba(59,130,246,.08);
  border-color:rgba(59,130,246,.18);
  color:#fff;
  transform:translateX(4px);
}

.nav-btn.active{
  background:linear-gradient(
    135deg,
    rgba(59,130,246,.18),
    rgba(139,92,246,.16)
  );
  border:1px solid rgba(59,130,246,.25);
  color:white;
}

.nav-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  font-size:16px;
}





/* ================= LOADER BAR FIX ================= */

.loader-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6);
  background-size:200% 100%;
  animation:
    loadingBarFill 4s linear forwards,
    loadingGlow 2s linear infinite;
}

.login-progress-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#22d3ee,#3b82f6,#8b5cf6);
  background-size:200% 100%;
  animation:
    loginBarFill 2.2s ease forwards,
    loadingGlow 2s linear infinite;
}

@keyframes loadingBarFill{
  from{width:0%;}
  to{width:100%;}
}

@keyframes loginBarFill{
  from{width:0%;}
  to{width:100%;}
}

@keyframes loadingGlow{
  0%{
    background-position:0% 50%;
    box-shadow:0 0 8px rgba(59,130,246,.35);
  }
  100%{
    background-position:200% 50%;
    box-shadow:0 0 18px rgba(139,92,246,.45);
  }
}