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

body {
  background: #f4f6f8;
  color: #333;
  padding: 20px;
}

h2, h3 {
  margin-bottom: 15px;
  text-align: center;
}

/* Card Container */
.container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"],
input[type="number"],
input[type="password"] {
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
}

button {
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;

}  
  /* Tombol custom */
.btn {
  display: inline-block;
  padding: 10px 15px;
  background: #2196F3;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}


.btn:hover {
  background: #1976D2;
}

.btn-success {
  background: #4CAF50;
}

.btn-success:hover {
  background: #388E3C;
}

.btn-danger {
  background: #f44336;
}

.btn-danger:hover {
  background: #d32f2f;
}



button:hover {
  background: #45a049;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

table th {
  background: #f0f0f0;
}

/* Riwayat Attendance */
ul {
  margin-top: 10px;
  list-style: none;
}

ul li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* Responsif */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 15px;
  }

  table th, table td {
    font-size: 13px;
    padding: 8px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }
}
