body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}
input, button {
    margin: 10px 0;
    padding: 10px;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #28a745;
    color: white;
    cursor: pointer;
    border: none;
}
#cards-container {
    margin-top: 20px;
}
.card {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.211);
    margin-top: 10px;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
}
.popup input {
    width: 80%;
}
.popup button {
    width: 40%;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.custom-select {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
}

.hadir_options_div {
    padding: 15px; border: 1px solid #ccc; border-radius: 8px; font-family: Arial, sans-serif; display: flex; gap: 20px; align-items: center; width: 89%
}

.kehadiran-checkbox{
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    width: 250px;
  }

  .kehadiran-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  .kehadiran-checkbox .box {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 2px solid #666;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
  }

  /* Important: input immediately followed by .box */
  .kehadiran-checkbox input[type="checkbox"]:checked + .box::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 3px;
    font-size: 18px;
    font-weight: bold;
    color: green;
  }

  .kehadiran-checkbox span.label-text {
    white-space: normal;
    overflow-wrap: break-word;
    flex: 1; /* let the text fill remaining space */
  }