body {
  background-color: var(--secondary-color);
  padding-top: 95px;
}

header {
  padding: 15px 20px;
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary-color);
  z-index: 100;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 95px;
}

.logo_card {
  padding: var(--card-padding);
  background-color: rgba(0, 128, 0,.4);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  padding-left: 30px;
  padding-right: 30px;
  cursor: pointer;
}

.logo_card h2 {
  font-size: 1.28rem;
  margin-bottom: 2px;
}

.logo_card p {
  font-family: cursive;
  font-size: var(--text-size);
  color: rgba(255, 255, 255, 0.7);
}

.links_card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu_bar {
  display: none;
}

.navbar {
  z-index: 200;
  display: none;
}

.navbar ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: rgba(253, 255, 253, 0.7);
  font-size: 1.0rem;
  font-weight: 600;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.navbar ul li a:hover {
  border-bottom: 2px solid white;
  color: rgb(192, 188, 188);
}

.counter1, .counter2 {
  margin: 12px;
  background-color: rgba(0, 128, 0,.4);
  font-size: 1.0rem;
  padding: 12px 10px;
  border-radius: 6px;
  color: var(--secondary-color);
}

.counter1 {
  display: none;
}

.blogs {
  display: none;
}

.result {
  background-color: green;
  position: fixed;
  z-index: 200;
  top: 20px;
  font-size: 1.04rem;
  font-weight: 600;
  right: 20px;
  border-radius: 5px;
  border: 1px solid rgba(253, 255, 253, 0.4);
  padding: 10px;
  animation: slideDown 0.6s ease forwards;
  transition: all 0.3s ease;
  color: white;
  display: none;
}

.result.error, .result.success {
  display: block;
}

.updating_card {
  background-color: rgba(0,0,0,.3);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.updating_card.show {
  display: flex;
}

.update_form {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  max-width: 600px;
  width: 70%;
  position: relative;
}

.close_card_btn {
  position: absolute;
  border: none;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  top: -15px;
  right: -15px;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.close_card_btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.update_form form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.update_form form p {
  color: black;
  font-size: 1.0rem;
  margin: 15px 0 0 0;
}

.update_form form input {
  padding: 12px 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1.0rem;
  margin: 20px 0;
  outline: none;
  color: blue;
}

.errorText {
  color: red;
  margin-top: -10px;
}

.update_form form button {
  padding: 12px 24px;
  color: green;
  border-radius: 8px;
  width: 50%;
  margin: 12px auto 15px auto;
  border: none;
  background-color: rgb(16, 16, 48);
  font-size: 1.0rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.update_form form button:hover {
  background-color: hsl(240, 50%, 23%);
}

.employees_card, .employees_history_card {
  background-color: rgb(244, 252, 244);
  border-radius: 5px;
  position: fixed;
  right: 50%;
  top: 50%;
  z-index: 50;
  transform: translate(50%, -50%);
  padding: 10px;
  height: 60vh;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-y: scroll;
  border: 1px solid rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
  transition: all 0.3s ease;
  animation: growFront 0.6s ease forwards;
  display: none;
}

@keyframes growFront {
  0% {
    transform: scale(0.7) translate(50%, -50%);
  }

  50% {
    transform: scale(1.02) translate(50%, -50%);
  }

  100% {
    transform: scale(1.0) translate(50%, -50%);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-300px);
  }
}

.employees_card.display, .employees_history_card.show_card {
  display: block;
}

.employees_history_card {
  z-index: 500;
}

.top_card_employees, .top_card_history {
  background-color: var(--primary-color);
  margin: -10px -10px 15px -10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px 5px 0 0;
  position: sticky;
  top: -10px;
}

.top_card_employees h2, .top_card_history h2 {
  color: white;
}

.top_card_history {
  background-color: rgb(24, 57, 24)
}

.employees_card .close_view, .employees_history_card .close_history {
  border: none;
  color: red;
  font-size: 1.0rem;
  font-weight: 600;
  background-color: transparent;
  padding: 8px 10px;
  cursor: pointer;
  transition:  all 0.3s ease;
}

.employees_card .close_view:hover, .employees_history_card .close_history:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.employee_container {
  display: flex;
  flex-direction: column; 

}

.employee_data, .employee_data_history {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  row-gap: 15px;
  
}

.employee_data {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.employee_data:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.04);
}

.name, .phone, .action_btn {
  padding: 12px 10px;
  font-size: 1.0rem;
}

.action_btn {
  display: flex;
  align-items: center;
  justify-content: end;
}

.phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.action_btn .submit_id_btn, .status, .employ_id_btn {
  background-color: rgb(116, 4, 4);
  color: white;
  padding: 8px 10px;
  font-size: 1.0rem;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.employ_id_btn {
  background-color: rgb(16, 16, 48);
}

.employ_id_btn:hover {
  background-color: hsl(240, 50%, 23%);
}

.status {
  background-color: rgba(209, 243, 209,.2);
  color: rgb(37, 38, 37);
  pointer-events: none;
  font-size: 1.0rem;
}

.action_btn .submit_id_btn:hover {
  background-color: rgb(168, 7, 7);
}

.sidebar {
  background-color: var(--primary-color);
  position: fixed;
  left: 0;
  overflow-y: scroll;
  scrollbar-width: none;
  bottom: 0;
  top: 94px;
  z-index: 100;
  padding: 20px 10px;
  width: fit-content;
  color: white;
  width: 300px;
}

.head, .head2 {
  color: var(--accent-color);
  text-align: left;
  padding: 10px 12px;
  font-size: 1.0rem;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.lower ul, .lower2 ul {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 20px auto 20px 15px;
  font-size: 1.0rem;
}

.lower2 ul {
  list-style: none;
}

.lower2 ul li {
  display: flex;
  line-height: 1.4;
}

.lower2 a {
  text-decoration: none;
  color: rgba(253, 255, 253, 0.7);
  padding: 8px 12px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  transition: all 0.3s ease;
}

.lower2 a i, .fa-clock-rotate-left {
  font-size: 1.04rem;
}

.contact_box {
  background-color: rgba(255, 255, 255,.1);
  padding: 8px;
  margin: 20px auto 10px auto;
}

.contact_box h3  {
  color: rgb(192, 188, 188);
  margin: 5px 0 15px 5px;
  font-size: 1.24rem;
}

.contact_box p a {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(253, 255, 253, 0.7);
}

.fa-clock-rotate-left {
  margin-left: -6px;
  margin-right: 5px;
}

.js_employee_history, .js_facility_name {
  font-size: 1.0rem;
  padding: 8px 12px;
  border: none;
  color: rgba(253, 255, 253, 0.7);
  margin-left: 22px;
  background-color: transparent;
  border-radius: 5px;
  cursor: pointer;
  margin-top: -15px;
}

.js_facility_name {
  margin: 15px 0 0 18px;
}

.lower2 a:hover, .js_employee_history:hover, .js_facility_name:hover {
  background-color: rgba(0, 128, 0,.6);
}

.main_container_card {
  margin-top: 10vh;
  background-color: rgba(190, 234, 190, 0.1);
  padding: 10px;
  width: 60%;
  right: 70%;
  transform: translateX(55%);
  border-radius: 8px;
  border:  1px solid rgba(0, 0, 0, 0.06);
}

.upper {
  text-align: center;
  padding: 10px;
  margin-bottom: 2px;
  font-size: 1.0rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px;
  font-size: 1.0rem;
  gap: 20px;
}

.card {
  padding: 20px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1.0rem;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card b {
  font-size: 1.0rem;
}

.card:nth-child(1) {
  background-color: rgba(0, 128, 0,.04);
}

.card:nth-child(2) {
  background-color: rgba(255, 0, 0,.04);
}

.card:nth-child(3) {
  background-color: rgba(255, 255, 0,.04);
}

.card:nth-child(4) {
  background-color: rgba(40, 96, 124, 0.04);
}

.card:nth-child(5) {
  background-color: rgba(89, 89, 42, 0.04);
}

.card:nth-child(6) {
  background-color: rgba(217, 217, 182, 0.04);
}

.show_employees_btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.show_employees_btn:hover {
  background-color: rgba(59, 59, 34, 0.1);
}

@media (max-width: 768px) {
  .employees_card, .employees_history_card {
    width: 98%;
  }

  .js_facility_name {
    margin-left: 3px;
    font-size: 1.0rem;
    font-weight: 600;
  }
}