body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

.dashboard-time {
  margin: 10px 0 20px 0;
  color: #555;
  font-size: 0.95em;
}

.header {
  background-color: #1b5e20; /* Hijau tua */
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-title {
  font-size: 1.2em;
  font-weight: bold;
}
.header-logout {
  color: white;
  text-decoration: none;
  background-color: #c62828;
  padding: 8px 12px;
  border-radius: 4px;
}
.container {
  display: flex;
  min-height: 100vh; /* layar penuh */
}

.sidebar {
  width: 220px;
  min-height: 100vh;
  background-color: #212529; /* gelap */
  color: #ffffff;
  position: sticky;
  top: 0;
}

.sidebar-logo {
  width: 100px;
  display: block;
  margin: 0 auto 20px auto;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Paksa menu konsisten di semua browser */
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu i {
  width: 20px;
  text-align: center;
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: #adb5bd;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: #343a40;
  color: white;
  border-left-color: #1b5e20;
}
/* FIX SIDEBAR AGAR KONSISTEN */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background-color: #212529; /* GELAP */
  color: #ffffff;
}

.content {
  flex: 1;
  padding: 30px;
}
.card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1,
h2,
h3 {
  margin-top: 0;
}
/* Formulir */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
/* Tombol */
.btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1em;
}
.btn-primary {
  background-color: #007bff;
  color: white;
}
.btn-secondary {
  background-color: #6c757d;
  color: white;
}
.btn-success {
  background-color: #28a745;
  color: white;
}
.btn-warning {
  background-color: #ffc107;
  color: black;
}
.btn-danger {
  background-color: #dc3545;
  color: white;
}

/* Tabel */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.table th,
.table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.table th {
  background-color: #f2f2f2;
}
.table td .btn {
  padding: 5px 10px;
  font-size: 0.9em;
  margin-right: 5px;
}

/* Login/Register Form */
.login-container {
  width: 400px; /* atau 360px */
  margin: 100px auto;
  text-align: center;
}

.login-container .card h2 {
  text-align: center;
}

.login-container img {
  width: 50px;
  margin-bottom: 20px;
}

.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo img {
  width: 100px; /* WAJIB */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-title {
  text-align: center;
}
