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

body {
  background: #f7f9fc;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Container umum */
.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Judul halaman */
h1, h2, h3 {
  margin-bottom: 15px;
  color: #222;
}

/* Tombol */
button, .btn {
  display: inline-block;
  padding: 10px 18px;
  margin: 5px 0;
  border: none;
  border-radius: 8px;
  background: #4a90e2;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

button:hover, .btn:hover {
  background: #357abd;
}

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

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

table th {
  background: #4a90e2;
  color: white;
}

table tr:nth-child(even) {
  background: #f2f2f2;
}

/* Form input */
input[type="text"],
input[type="number"],
input[type="password"],
select {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
  }

  table td {
    text-align: left;
    padding-left: 40%;
    position: relative;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
  }
}

/* Notifikasi */
.msg {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.msg.success { background: #4caf50; } /* Hijau */
.msg.error   { background: #f44336; } /* Merah */
.msg.info    { background: #2196f3; } /* Biru */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}