@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display&display=swap");

* {
  --color-1: rgb(43, 131, 231);
  --color-2: white;
  --color-3: rgb(247, 247, 158);
  --color-4: #009e53;
  --color-5: #c9dce2;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Red Hat Display", sans-serif;
  background-color: #e8ecea;
  background-image: url("images/pattern.png");
  background-size: cover;
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  background: var(--color-1);
  width: 100%;
  height: 50px;
}

.left_area {
  /* float: left; */
  width: 250px;
  text-align: center;
  line-height: 100%;
  /* justify-content: space-evenly; */
  /* width: 150px; */
}

.left_area h3 {
  color: var(--color-3);
  text-transform: uppercase;
  font-size: 12px;
}

.left_area span {
  color: white;
  font-size: 16px;
}

.center_area {
  flex: 3;
  /* width: 30%; */
}

.right_area {
  flex: 1;
  padding-right: 35px;
  text-align: right;
  /* width: calc(20%-250px); */
}

.logout_btn {
  padding: 10px 20px;
  background: var(--color-1);
  text-decoration: none;
  /* float: right; */
  /* margin-top: -30px; */
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: backgorund 0.5s;
}

.logout_btn:hover {
  background: #d31932;
}

/* ========================================================= Alert ========================================================= */

.alert {
  /* display: none; */
  /* float: left; */
  width: 100%;
  /* margin-left: 50px; */
  /* height: 44px; */
  height: 30px;
  background-color: var(--color-3);
  font-size: 14px;
  /* margin-bottom: 10px; */
}

.hide {
  display: none;
}

.alert-info {
  float: left;
  margin-left: 30px;
  margin-top: 6px;
  /* font-weight: 500; */
  color: black;
}

.alert-close {
  float: right;
  margin: 5px 10px;
  padding: 2px;
  background-color: var(--color-1);
  color: #fff;
  width: 70px;
  border: none;
  cursor: pointer;
}

/* ========================================================= Side Bar ========================================================= */

label #aside_btn {
  z-index: 1;
  color: #fff;
  /* position: fixed; */
  cursor: pointer;
  /* left: 250px; */
  margin-left: 206px;
  font-size: 30px;
  transition: color 0.5s;
}

label #aside_btn:hover {
  color: var(--color-1);
}

aside {
  background: var(--color-5);
  background-size: cover;
  margin-top: 50px;
  padding-top: 15px;
  position: fixed;
  left: 0;
  width: 250px;
  height: 100%;
  transition: left 0.5s;
}

aside .profile_image {
  /* width: 100px; */
  height: 150px;
  border-radius: 10%;
  margin-top: 10px;
  margin-bottom: 10px;
  /* border: 1px solid yellow; */
}

aside h4 {
  color: var(--color-4);
  margin-top: 0;
  margin-bottom: 20px;
}

aside a {
  color: black;
  display: inline-block;
  width: 100%;
  font-size: 13px;
  /* line-height: 60px; */
  text-decoration: none;
  padding: 15px;
  box-sizing: border-box;
  transition: background 0.5s;
}

aside a:hover {
  background: var(--color-1);
  color: var(--color-2);
}

aside i {
  padding-right: 10px;
}

.menu-item {
  /* background-color: #15a857; */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.menu-item i {
  flex: 1;
  text-align: center;
}

.menu-item span {
  flex: 6;
  text-align: left;
}

/* ========================================================= Content ========================================================= */

.content {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  width: calc(100%-250px);
  margin-left: 250px;
  margin-bottom: 50px;
  padding-top: 70px;
  /* background: url(images/gambarpuskesmas.png) no-repeat; */
  background-size: cover;
  background-position: center;
  /* min-height: 100vh; */
  transition: margin-left 0.5s;
}

#check {
  display: none;
}

#check:checked ~ aside {
  /* lebar menu */
  left: -190px;
}

#check:checked ~ aside a span {
  display: none;
}

#check:checked ~ aside a {
  font-size: 20px;
  text-align: center;
  margin-left: 190px;
  /* lebar highlight */
  width: 60px;
  transition: all 0.5s;
}

#check:checked ~ aside center {
  opacity: 0;
  transition: all 0.5s;
}

#check:checked ~ .content {
  margin-left: 60px;
}

/* ========================================================= About ========================================================= */

.about {
  width: 80%;
  margin: 0;
  text-align: justify;
}

/* ========================================================= Login ========================================================= */

.login {
  width: 300px;
  height: 300px;
  background: #2f323a;
  margin-top: 200px;
  color: #fff;
  font-weight: normal;
}

.tabel-login {
  width: 100%;
  border-collapse: collapse;
}

.tabel-login tr:first-child th {
  background: var(--color-1);
}

.tabel-login th {
  padding-top: 20px;
}

.tabel-login h3,
h4 {
  font-weight: normal;
  color: #fff;
}

.tabel-login input {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.tabel-login button {
  margin-top: 20px;
  width: 100%;
  padding: 5px;
  background: var(--color-1);
  color: #fff;
  border: none;
  padding: 10px 0;
  cursor: pointer;
}

/* ========================================================= Home ========================================================= */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.home-wallpaper {
  width: 100%;
}

.home-wallpaper img {
  width: 100%;
}

.home-info {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
  justify-content: center;
}

.home-info h2,
h5 {
  margin: 0px;
}

/* ========================================================= Galeri ========================================================= */

.galeri {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  gap: 20px;
  /* background: cyan; */
  /* min-height: 100vh; */
}

.galeri-item {
  width: 300px;
  border: 2px solid var(--color-1);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.568);
}

/* ========================================================= doorsmeer ========================================================= */

.konten-container {
  padding: 10px;
}

.konten-container .tabel {
  background: #cfd3d2;
  border-collapse: collapse;
  border: 1px solid rgba(21, 64, 182, 0.3);
  /* table-layout: fixed; */
  width: 100%;
  font-size: 12px;
  margin: auto;
}

.konten-container .tabel th:nth-child(n + 1) {
  text-align: center;
  padding: 10px;
  background: var(--color-1);
  color: var(--color-2);
  /* width: 40px; */
}

.konten-container .tabel th:first-child {
  width: 10px;
}

.konten-container .tabel td {
  padding: 10px 5px;
}

.btn {
  display: block;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  color: white;
  min-width: 30px;
  outline: none;
  border: none;
}

.btn-tambah {
  background-color: #195ad3;
}

.btn-edit {
  background-color: #15a857;
}

.btn-hapus {
  background-color: #d31932;
}

/* ========================================================= Tambah Data ========================================================= */

.tambah-container {
  margin-top: 50px;
  padding: 20px 30px;
  width: 500px;
  /* min-height: 550px; */
  background: var(--color-4);
  border-radius: 15px;
  box-sizing: border-box;
}

.tambah-container input,
select,
textarea {
  margin-bottom: 10px;
  width: 96%;
  padding: 5px;
  border-radius: 5px;
  border: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  position: fixed;
  background: var(--color-1);
  width: calc(100% - 250px);
  height: 30px;
  bottom: 0px;
  right: 0px;
}

footer p {
  color: var(--color-3);
  margin: 0 20px;
  font-size: 13px;
  flex: 1;
}

footer p:nth-child(2) {
  text-align: right;
}
