* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f5f7;
  color: #111;
}

/* NAVBAR */
.navbar {
  height: 56px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.brand {
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-spacer {
  flex: 1;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 56px;
  right: -260px;
  width: 260px;
  height: calc(100vh - 56px);
  background: #fff;
  border-left: 1px solid #ddd;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.sidebar.active {
  right: 0;
}

.sidebar a {
  display: block;
  text-decoration: none;
  color: #111;
  font-weight: bold;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* MAIN */
main {
  padding: 90px 20px 20px;
  max-width: 1100px;
  margin: auto;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

/* DASHBOARD CARD */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}

.stat {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.stat h2 {
  font-size: 28px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

th {
  background: #fafafa;
  font-weight: bold;
}

/* FORM */
form input, form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
}

button {
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.table-card{
  background:#fff;
  padding:20px;
  border-radius:10px;
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th, td{
  padding:12px;
  border-bottom:1px solid #eee;
  font-size:14px;
}

th{
  background:#f8f8f8;
  text-align:left;
}

.aksi{
  display:flex;
  gap:8px;
}

.btn-stock{
  background:#222;
  color:#fff;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

.btn-delete{
  background:#e53935;
  color:#fff;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

.btn-stock:hover{opacity:.85}
.btn-delete:hover{opacity:.85}