/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f4f6f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

form select,
form input,
form button {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

form select:focus,
form input:focus {
  border-color: #3498db;
  outline: none;
}

button {
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #2980b9;
}

#clearSign {
  background: #e74c3c;
  margin-top: 10px;
}

#clearSign:hover {
  background: #c0392b;
}

/* Tabel */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table thead {
  background: #3498db;
  color: white;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

#result {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
  color: #27ae60;
}

/* Responsif */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  form select, form input, form button {
    font-size: 12px;
    padding: 8px;
  }
}

/* ===== Navbar ===== */
.navbar {
  background: #3498db;
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;  /* logo kiri, menu kanan */
  align-items: center;
}

.logo {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;     /* <-- bikin menu sejajar (horizontal) */
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-links li a:hover {
  background: rgba(255,255,255,0.2);
}

