#CustomerManage,
#ItemManage {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

#CustomerManage > div,
#ItemManage > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

#CustomerManage > :first-child > div,
#ItemManage > :first-child > div {
  margin-top: 4vh;
}

.title {
  font-size: 2rem;
  font-weight: 500;
}

form div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 34px;
}

#CustomerManage form label,
#ItemManage form label {
  font-size: 1.3rem;
  font-weight: 450;
  margin-bottom: 5px;
}

form div input,
select {
  padding: 10px;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  width: 80%;
}

.buttons {
  flex-direction: row;
}

.buttons button {
  padding: 19px 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all ease-in-out 0.25s;
  font-size: 18px !important;
}

.buttons .saveBtn {
  background-color: #56abf6;
}

.buttons .saveBtn:hover {
  background-color: #4682b4;
}

.buttons .removeBtn,
.buttons .clearBtn {
  background-color: #db3843;
}

.buttons .removeBtn:hover,
.buttons .clearBtn:hover {
  background-color: #b22222;
}

.buttons .updateBtn {
  background-color: #dcaa13;
}

.buttons .updateBtn:hover {
  background-color: #b8860b;
}

.buttons .searchBtn {
  background-color: #24a746;
}

.buttons .searchBtn:hover {
  background-color: #1e7e34;
}

#CustomerManage table,
#ItemManage table {
  margin-left: -150px;
  border-collapse: collapse;
}

#CustomerManage th,
#CustomerManage td,
#ItemManage th,
#ItemManage td {
  border: 1px solid #c4c4c4;
  width: 20vw;
  height: 4vw;
  text-align: center;
}

#CustomerManage th,
#ItemManage th {
  background-color: #c4202b;
  font-size: 1.2rem;
  color: #eaeaea;
}

.valid-field {
  border: 2px solid #28a745 !important;
}

.invalid-field {
  border: 2px solid #dc3545 !important;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

#CustomerManage form input,
#ItemManage form input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ced4da;
  margin-bottom: 5px;
}

.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s forwards;
}

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

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

.close-alert {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
