@font-face {
    font-family: 'Source Sans 3';
    src: url('font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('font-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

body, input {
    font-family: "Source Sans 3", sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    font-weight: normal;
}

.container {
    padding: 1em;
}

select, input, button {
    font-family: "Source Sans 3", sans-serif;
    font-size:1em;
}

select {
    padding:3px 5px;
    width:100%;
}

select, label, button.tampilkan {
display: block;
text-align:left;
}

h2, h3 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: bold;
    margin: 5px;
    font-size: 1.7rem;
}

p {
    font-size: 1.2rem;
    margin: 0;
}

.landing {
    margin: 20px 0 10px;
}

.choice-button {
    width: 90%;
    max-width: 500px;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: "Source Sans 3", sans-serif;
}

.choice-button:hover {
    background-color: #218838;
    text-decoration: none;
}

button.choice-button[value="Ya"] {
    background-color: #28a745;
    color: white;
}

button.choice-button[value="Ya"]:hover {
    background-color: #218838;
}

button.choice-button[value="Tidak"] {
    background-color: #dc3545;
    color: white;
}

button.choice-button[value="Tidak"]:hover {
    background-color: #c82333;
}

.result {
    font-size: 1.5rem;
}

a {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

a.muat-ulang {
    display: inline-block;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: none;
}

.form-identitas input[type="text"],
.form-identitas input[type="number"],
.form-identitas input[type="password"],
.form-identitas input[type="date"] {
    width: 90%;
    max-width: 500px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
    text-align: center;
}

.form-identitas input:focus {
    border-color: #218838;
    outline: none;
}

.form-identitas {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}
th, td {
    border: 1px solid #aaa;
    padding: 8px;
    text-align: center;
}
th {
    background: #f0f0f0;
}
.MERAH {
    background-color: #f88;
    color: #900;
    font-weight: bold;
}
.KUNING {
    background-color: #fffaac;
    color: #b8860b;
    font-weight: bold;
}
.HIJAU {
    background-color: #c8facc;
    color: #008000;
    font-weight: bold;
}

.back-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-family: "Source Sans 3", sans-serif;
}

.back-button:hover {
    background-color: #ddd;
    cursor: pointer;
}

.table{
overflow-y:auto;
margin:5px 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-overlay.show {
  transform: translateX(0);
  opacity: 1;
}

.menu-overlay a {
  color: white;
  font-size: 2rem;
  margin: 1rem;
  text-decoration: none;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-fixed {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: #eee;
  border: none;
  border-radius: 5px;
  color: #222;
  cursor: pointer;
}

.btn {
    display: block;
    font-size: 1em;
    cursor: pointer;
    font-family: "Source Sans 3", sans-serif;
    margin-bottom: -1em;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
}

.left {
    text-align: left;
}

td.ya {
    background-color: #f8d7da;
}

.rujukan-gigi, td.rujukan-gigi {
    background-color: #d4fcd4;
}

.rujukan-umum, td.rujukan-umum {
    background-color: #fff3cd;
}

.rujukan-negatif, td.rujukan-negatif {
    background-color: #f8d7da;
}

.filter {
display: inline-block;
box-sizing: border-box;
background: #fff;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin-bottom:1em
}

.kolom-penuh {
display: block;
vertical-align: top;
box-sizing: border-box;
background: #fff;
padding: 1em 1em 1em 1em;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
border-radius: 8px;
}

.kolom-satu {
display: inline-block;
vertical-align: top;
box-sizing: border-box;
background: #fff;
width: 59%;
padding: 1em 1em 1em 1em;
margin-right: 1%;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
border-radius: 8px;
}

.kolom-dua {
display: inline-block;
vertical-align: top;
width: 39%;
box-sizing: border-box;
background: #fff;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tampilkan {
background-color: #28a745;
padding: 0.25em 0.5em;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
transition: background-color 0.3s;
margin-top: 9px;
font-size:0.9em;
text-align:left;
}

.tampilkan:hover {
    background-color: #218838;
    text-decoration: none;
}

.text-landing, .result {
width:90%;
max-width:500px;
margin: 1em auto;
padding: 1em;
background: #fff; 
border-radius: 10px; 
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
box-sizing: border-box;
}

.text-landing p {
font-size:1em;
}

footer {
width:100%;
margin-top:1em;
background: #fff; 
padding:1em;
box-sizing: border-box;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pesan {
width: 90%;
max-width: 500px;
margin: 0 auto 10px;
padding: 10px;
border-radius: 5px;
box-sizing: border-box;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#password-match-message {
width: 90%;
max-width: 500px;
margin: 0 auto 10px;
display: none;
padding: 10px;
border-radius: 5px;
box-sizing: border-box;
}

.match {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}

.not-match {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}

.reset-password, .hapus-petugas, .hapus-pasien {
border:0;
padding:3px 7px;
border-radius: 3px;
}

.reset-password:hover, .hapus-petugas:hover, .hapus-pasien:hover {
cursor:pointer;
background-color: #ccc;
}

.reset-password {
background-color: #d4fcd4;
}

.hapus-petugas, .hapus-pasien {
background-color: #f8d7da;
}

@media (max-width: 600px) {
    .choice-button {
        display: block;
        width: 90%;
        max-width: 600px;
        margin: 0.5rem auto;
    }
}

@media (max-width: 800px) {
    .kolom-satu, .kolom-dua {
    display: block;
    width:100%;
    margin-bottom:1em;
    }
}