*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Inter, Arial, sans-serif;
}

/* BACKGROUND */
body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left,#0184ff,transparent 40%),
    radial-gradient(circle at bottom right,#873ecf,transparent 40%),
    linear-gradient(120deg,#020617,#020617);
  color:#fafafa;
}

/* GLASS */
.glass{
  background:rgba(255,255,255,0.14);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.20);
  border-radius:20px;
  box-shadow:0 14px 28px rgba(0,0,0,0.22);
}

/* TOPBAR */
.topbar{
  height:64px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:20px;
  font-weight:600;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.topbar a{
  color:#c7d2fe;
  text-decoration:none;
}

.logout{
  padding:6px 12px;
  border-radius:8px;
}

.logout:hover{
  background:rgba(255,255,255,0.15);
}

/* MENU BUTTON */
.menu-btn{
  display:none;
  background:none;
  border:none;
  color:#c7d2fe;
  font-size:22px;
  cursor:pointer;
}

/* LAYOUT */
.container{
  display:flex;
  min-height:calc(100vh - 64px);
  padding:20px;
  gap:20px;
}

/* SIDEBAR */
.sidebar{
  width:260px;
  padding:18px;
}

.sidebar-inner{
  display:flex;
  flex-direction:column;
}

.sb-section{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  color:#c7d2fe;
  margin:16px 0 8px;
}

.sb-link{
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#fff;
  font-size:15px;
  font-weight:600;
  margin-bottom:10px;
  display:flex;
  gap:12px;
  position:relative;
}

.sb-link:hover,
.sb-link.active{
  background:rgba(255,255,255,0.22);
}

/* ACTIVE INDICATOR */
.sb-link.active::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:60%;
  border-radius:6px;
  background:linear-gradient(180deg,#38bdf8,#818cf8);
  box-shadow:0 0 12px rgba(56,189,248,0.9);
}

/* ICON GLOW */
.sb-link.active i{
  color:#7dd3fc;
  text-shadow:0 0 6px rgba(125,211,252,0.9);
}

/* CONTENT */
.content{
  flex:1;
  padding:20px;
}

/* BREADCRUMB */
.breadcrumb{
  display:flex;
  gap:8px;
  font-size:14px;
  margin-bottom:16px;
  color:#c7d2fe;
}

.breadcrumb .current{
  color:#fff;
  font-weight:600;
}

/* HEADINGS */
h1{font-size:28px;margin-bottom:20px;}
h2{font-size:18px;margin:26px 0 14px;}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
  margin-bottom:32px;
}

.card{
  padding:24px;
}

.card h3{
  font-size:14px;
  opacity:0.85;
}

.card p{
  font-size:34px;
  font-weight:700;
  margin-top:6px;
}

/* TABLE */
table{
  width:100%;
  border-collapse:collapse;
}

table th,
table td{
  padding:12px;
}

table td{
  border-top:1px solid rgba(255,255,255,0.15);
}

/* BUTTONS */
.form-btn{
  padding:10px 20px;
  border:none;
  border-radius:12px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  color:#020617;
  background:linear-gradient(135deg,#38bdf8,#818cf8);
  box-shadow:0 10px 22px rgba(56,189,248,0.45);
}

.cancel-btn{
  margin-left:12px;
  color:#c7d2fe;
  text-decoration:none;
}

.action-btn{
  padding:6px 12px;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  margin-right:6px;
  display:inline-block;
}

.action-edit{
  background:rgba(34,197,94,0.25);
  color:#22c55e;
}

.action-delete{
  background:rgba(239,68,68,0.25);
  color:#ef4444;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  .menu-btn{display:block;}

  .container{
    padding:14px;
  }

  .sidebar{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:80px;
    padding:14px 8px;
    transform:translateX(-100%);
    transition:.3s ease;
    z-index:3000;
  }

  .sidebar.active{
    transform:translateX(0);
    box-shadow:20px 0 40px rgba(0,0,0,0.45);
  }

  .sidebar span,
  .sb-section{
    display:none;
  }

  .sidebar-inner{
    align-items:center;
  }

  .sb-link{
    justify-content:center;
  }

  .sb-link.active::before{
    display:none;
  }

  /* disable content click when menu open */
  body.menu-open .content{
    pointer-events:none;
    filter:blur(2px);
  }

  body.menu-open .sidebar{
    pointer-events:auto;
  }

  .cards{
    grid-template-columns:1fr;
  }
}

/* ================= MOBILE TABLE CARD ================= */

@media(max-width:600px){

  table thead{
    display:none;
  }

  table tr{
    display:block;
    background:rgba(255,255,255,0.08);
    margin-bottom:14px;
    border-radius:14px;
    padding:10px;
  }

  table td{
    display:flex;
    justify-content:space-between;
    border:none;
    padding:6px 4px;
    font-size:14px;
  }

  table td::before{
    content:attr(data-label);
    font-weight:600;
    color:#c7d2fe;
  }

  .form-btn{
    width:100%;
    margin-bottom:10px;
  }

  .cancel-btn{
    display:block;
    margin-left:0;
    text-align:center;
  }
}
