body{
  margin:0;
  font-family: Arial;
  background:#020617;
  color:white;
}
.login-screen{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  height:100vh;
}
.login-screen input{
  padding:10px;
  margin:10px;
}
.login-screen button{
  padding:10px 20px;
}

.admin-layout{
  display:none;
  height:100vh;
}

.sidebar{
  width:220px;
  background:#0f172a;
  padding:20px;
}
.sidebar button{
  width:100%;
  margin:5px 0;
  padding:10px;
  background:#1e293b;
  border:none;
  color:white;
  cursor:pointer;
}

.content{
  flex:1;
  padding:30px;
}

.page{
  display:none;
}
.page.active{
  display:block;
}































.demo-box{
  background:#4c5a93;
  padding:15px;
  border-radius:10px;
  margin-top:15px;
  font-size:14px;
}

















































/* ---------- ADMIN UI UPGRADE (SAFE TO ADD) ---------- */

/* Smooth font & layout */
body{
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Better buttons */
button{
  transition: all .2s ease;
}
button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56,189,248,.35);
}

/* Sidebar polish */
.sidebar{
  background: linear-gradient(180deg,#020617,#0f172a);
  border-right:1px solid rgba(255,255,255,.06);
}

/* Active menu */
.sidebar button.active{
  background:#38bdf8;
  color:#020617;
  font-weight:600;
}

/* Card style for pages */
.page{
  background:#020617;
  padding:25px;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,.5);
}

/* Inputs look premium */
input, textarea{
  background:#020617;
  color:white;
  border:1px solid rgba(255,255,255,.1);
  transition:.2s;
}
input:focus, textarea:focus{
  border-color:#38bdf8;
  outline:none;
  box-shadow:0 0 0 3px rgba(56,189,248,.25);
}

/* Mobile Layout */
@media (max-width: 900px){
  .admin-layout{
    flex-direction:column;
  }
  .sidebar{
    width:100%;
    display:flex;
    overflow-x:auto;
  }
  .sidebar button{
    flex:1;
    min-width:120px;
  }
  .content{
    padding:15px;
  }
}

/* Login box polish */
.login-screen{
  background: radial-gradient(circle at top,#0f172a,#020617);
}
.login-screen input{
  background:#020617;
  border:1px solid rgba(255,255,255,.1);
}
.login-screen button{
  background:linear-gradient(90deg,#38bdf8,#0ea5e9);
}

















































/* Loader */
#adminLoader{
  position:fixed;
  inset:0;
  background:#020617;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
.loader-bar{
  width:0;
  height:4px;
  background:#38bdf8;
  animation:loadBar 1s linear forwards;
}
@keyframes loadBar{
  to{width:80%;}
}

/* Theme Toggle */
.theme-toggle{
  position:fixed;
  top:15px;
  right:15px;
  background:#0f172a;
  padding:8px 12px;
  border-radius:30px;
  z-index:999;
}

/* Light mode */
body.light{
  background:#f9fafb;
  color:#020617;
}
body.light .sidebar{background:#e5e7eb;}
body.light .page{background:white;}
body.light input, body.light textarea{background:#f1f5f9;color:black}

/* Progress bars */
.progress{
  background:#1e293b;
  height:10px;
  border-radius:10px;
  overflow:hidden;
  margin:10px 0;
}
.progress-bar{
  height:100%;
  width:0%;
  background:#38bdf8;
  transition:width .5s;
}
