/* ===== ROOT ===== */

html{
  font-size:16px; /* base for desktop */
}

/* MOBILE */
@media (max-width: 768px){
  html{
    font-size:18px; /* mobile pe thoda bada */
  }
}

/* SMALL MOBILE */
@media (max-width: 480px){
  html{
    font-size:19px;
  }
}

*{box-sizing:border-box;font-family:'Inter',sans-serif}

body{margin:0;background:var(--bg);color:var(--text)}

/* ===== TOPBAR ===== */
.topbar{
  height:64px;
  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 16px;
  border-bottom:1px solid var(--border);
}

.menu-toggle{
  font-size:22px;
  cursor:pointer;
  margin-right:10px;
}

.search{
  background:#f1f5f9;
  border:none;
  padding:8px 12px;
  border-radius:8px;
  width:220px;
}

.right .icon{margin-right:12px}
.user{font-weight:500}

/* ===== LAYOUT ===== */
.wrapper{display:flex}

/* ===== SIDEBAR ===== */
.sidebar{
  width:260px;
  background:#fff;
  min-height:100vh;
  border-right:2px solid var(--border) color:red;
  transition:.3s;
  z-index: 1024;
}

.logo{
  padding:20px;
  font-weight:700;
  font-size:18px;
}

.menu{list-style:none;padding:10px;margin:0}

.menu li a{
  display:block;
  padding:10px 16px;
  margin-bottom:6px;
  border-radius:8px;
  text-decoration:none;
  color:#64748b;
  font-size:14px;
}

.menu li.active a,
.menu li a:hover{
  background:#ecfdf5;
  color:var(--active);
}

/* ===== CONTENT ===== */
.content{
  padding:20px;
  width:100%;
}

/* ===== CARDS ===== */
.card{
  background:#fff;
  border-radius:14px;
  box-shadow:var(--shadow);
}

/* ===== OVERLAY ===== */
.overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  z-index:99;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .search{display:none}
  .user{display:none}

  .sidebar{
    position:fixed;
    left:-100%;
    top:0;
    z-index:100;
    height:100vh;
  }

  .sidebar.show{
    left:0;
  }

  .overlay.show{
    display:block;
  }

  .wrapper{
    flex-direction:column;
  }

  .stats .col-md-3{
    margin-bottom:15px;
  }
}

/* ================= SMALL MOBILE ================= */
@media(max-width:480px){
  .content{padding:14px}
  h3{font-size:18px}
}
