/* =================================================
   ENTERPRISE WMS DESIGN SYSTEM (PRODUCTION READY)
================================================= */

:root{
  --sidebar:#0f172a;
  --sidebar-hover:#1e293b;
  --sidebar-text:#e2e8f0;

  --bg:#f1f5f9;
  --card:#ffffff;

  --primary:#1d4ed8;
  --primary-dark:#1e40af;

  --text:#0f172a;
  --muted:#64748b;

  --radius:12px;
}


/* RESET */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family: Inter, system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
}


/* ================= LAYOUT ================= */
.layout{
  display:flex;
  min-height:100vh;
}


/* ================= SIDEBAR ================= */
.sidebar{
  width:240px;
  background:var(--sidebar);
  color:var(--sidebar-text);
  display:flex;
  flex-direction:column;
  position:fixed;
  height:100vh;
}

.logo{
  display:flex;
  gap:12px;
  align-items:center;
  padding:20px;
  border-bottom:1px solid #1e293b;
  font-weight:700;
}

.logo span{
  font-size:12px;
  opacity:.6;
}

.logo-icon{
  background:#1d4ed8;
  padding:8px 10px;
  border-radius:8px;
  font-weight:bold;
}

.nav{
  padding-top:10px;
}

.nav-link{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 20px;
  text-decoration:none;
  color:var(--sidebar-text);
  font-size:14px;
  transition:.2s;
}

.nav-link:hover{
  background:var(--sidebar-hover);
}

.nav-link i{
  width:18px;
  height:18px;
}

.sidebar-footer{
  margin-top:auto;
  padding:16px;
  border-top:1px solid #1e293b;
}

.logout{
  color:#fca5a5;
  text-decoration:none;
  display:flex;
  gap:6px;
}


/* ================= MAIN ================= */
.main{
  margin-left:240px;
  flex:1;
  display:flex;
  flex-direction:column;
}


/* ================= TOPBAR ================= */
.topbar{
  height:60px;
  background:#fff;
  border-bottom:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  position:sticky;
  top:0;
  z-index:100;
}

.page-title{
  font-weight:600;
  font-size:16px;
}


/* ================= CENTERED CONTENT ================= */
.content-wrapper{
  display:flex;
  justify-content:center;
  padding:32px;
}

.content{
  width:100%;
  max-width:1200px;
}


/* ================= CARDS ================= */
.card{
  background:var(--card);
  padding:20px;
  border-radius:var(--radius);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  margin-bottom:20px;
}


/* ================= BUTTONS ================= */
button{
  background:var(--primary);
  color:white;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}

button:hover{
  background:var(--primary-dark);
}


/* ================= TABLE ================= */
table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th, td{
  padding:12px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
}

th{
  background:#f8fafc;
  font-weight:600;
}


/* ================= MOBILE ================= */
@media (max-width:768px){
  .sidebar{
    left:-260px;
    transition:.25s;
  }

  .sidebar.show{
    left:0;
  }

  .main{
    margin-left:0;
  }
}
