/* ==== RESET & DASAR ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
}

/* ==== NAVBAR ==== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #343a40;
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.navbar .brand {
  font-weight: bold;
}
.navbar .toggle-btn {
  font-size: 24px;
  cursor: pointer;
  display: none; /* hanya tampil di hp/tablet */
}

/* ==== LAYOUT ==== */
.container {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #ddd;
  transition: transform 0.3s ease;
}
.sidebar ul {
  list-style: none;
}
.sidebar ul li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.sidebar ul li a:hover {
  background: #f8f9fa;
  font-weight: bold;
}
.content {
  flex: 1;
  padding: 20px;
  overflow-x: auto;
}

/* ==== CARD ==== */
.card {
  background: #fff;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card h3 {
  margin-bottom: 10px;
}

/* ==== TABLE ==== */
.table-responsive {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
thead {
  background: #343a40;
  color: #fff;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) { /* tablet */
  .navbar .toggle-btn {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .content {
    padding: 15px;
  }
}
@media (max-width: 576px) { /* hp */
  .navbar {
    padding: 8px 15px;
  }
  .content {
    padding: 10px;
  }
}
