@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
}

*,
body,
html {
  margin: 0;
}
body,
html {
  height: 100dvh;
  width: 100vw;
  overflow-x: hidden !important;
}
body {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: top;
  background-image: url(assets/bg-image-min.jpg);
  letter-spacing: 0.02em;
  font-family: "Roboto";
  color: #cccccc;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

p {
  font-size: 16px;
}
.title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
  width: 160px;
}
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.glass {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: calc(100vw - 200px);
  margin: 20px 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  box-shadow: 1px 1px 3px 0 rgba(255, 255, 255, 0.21) inset,
    0 0 20px rgba(0, 0, 0, 0.5), -1px -1px 2px 0 rgba(255, 255, 255, 0.1) inset;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.function {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-stickLeft {
  position: -webkit-sticky;
  position: sticky;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  align-self: start;
  transform: translateY(-50%);
}

.btn-stickRight {
  position: -webkit-sticky;
  position: sticky;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  align-self: start;
  transform: translateY(-50%);
}

.download,
.preview {
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  flex: 1;
}

/* .btn-download {
  max-width: 400px;
} */

.tableContainer {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden !important;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

/* Gen by JS */
#myTable {
  width: 100%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  border-collapse: separate;
  -webkit-border-horizontal-spacing: 4px;
  -webkit-border-vertical-spacing: 4px;
  background-color: rgba(0, 0, 0, 0);
}
#myTable tr td:first-child {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 1px;
  font-size: 12px;
  pointer-events: none;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  padding: 0px 4px 0px 0px;
  text-align: right;
  color: rgba(255, 255, 255, 0.3);
  background-color: transparent;
  border: none;
}

/* ^ Gen by JS */

tr:hover {
  background-color: rgba(0, 0, 0, 0.2);
}
td {
  color: #cccccc;
  border: 1px solid rgb(255, 255, 255, 0.1);
  height: 26px;
  /* width: 50%; */
  min-width: 120px;
  white-space: nowrap;
  padding: 10px 20px;
  transition-duration: 0.3s;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
td:hover {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 0px 1px #3fbb9b inset;
}

.editing {
  color: #cccccc !important;
  background-color: rgba(63, 187, 155, 0.3) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px #3fbb9b inset !important;
}

.search {
  display: flex;
  width: 100%;
  align-items: center;
}

.search > form {
  flex: 1;
}
.search > button {
  flex: 0;
  margin-left: 12px;

  height: 42px;
}
.searchResult {
  color: #1be9b4;
  font-weight: 500;
  background-color: rgba(63, 187, 155, 0.3) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px #3fbb9b inset !important;
}

footer {
  flex: 0 0 auto;
  -ms-grid-row-align: center;
  align-self: center;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  -moz-column-gap: 12px;
  column-gap: 12px;
  color: #cccccc;
  font-size: 12px;
  font-weight: 400;
  flex-wrap: wrap;
}
footer a,
footer p {
  font-size: 12px;
  color: #cccccc;
}

.footer-image {
  margin: 0;
  width: 20px;
}

button {
  position: relative;
  outline: none;
  border: none;
  cursor: pointer;
  display: block;
  background-color: #3fbb9b;
  font-size: 16px;
  font-weight: 400;
  color: white;
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px rgba(0, 0, 0, 0.1);
  transition-duration: 0.2s;
  top: 0px;
  height: 52px;
}

.add,
.del {
  width: 40px;
  height: 40px;
  text-align: center;
  padding: 2px;
  line-height: 100%;
}
.add {
  box-shadow: none;
  color: rgba(142, 211, 250, 0.5);
  color: #54bce8;
  /* color: rgba(225, 225, 225, 0.7); */
  background-color: rgba(81, 154, 186, 0.3);
  border: 1px solid #519aba;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.del {
  color: rgba(252, 193, 193, 0.5);
  color: #f5797b;
  /* color: rgba(225, 225, 225, 0.7); */
  box-shadow: none;
  background-color: rgba(245, 121, 123, 0.4);
  border: 1px solid #f5797b;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}
.add:disabled,
.del:disabled,
#searchBtn:disabled {
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(255, 255, 255, 0.1);
  color: rgba(225, 225, 225, 0.1);
  pointer-events: none;
  /* opacity: 0.5; */
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.displayPageNum {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.prevbtn,
.nextbtn {
  width: 80px;
  height: 40px;
  padding: 0;
  text-align: center;
  font-size: 16px;
  line-height: 100%;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgb(255, 255, 255, 0.1);
  box-shadow: none !important;
}

form {
  margin-right: 20px;
  flex: 1;
}
input {
  height: 32px;
  font-size: 16px;
  color: #cccccc;
  padding: 8px 8px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(255, 255, 255, 0.1);
  text-align: left;
  transition-duration: 0.2s;
  width: 100%;
}
input::-webkit-input-placeholder {
  color: #cccccc;
  opacity: 0.3;
}
input::-moz-placeholder {
  color: #cccccc;
  opacity: 0.3;
}
input:-ms-input-placeholder {
  color: #cccccc;
  opacity: 0.3;
}
input::-ms-input-placeholder {
  color: #cccccc;
  opacity: 0.3;
}
input::placeholder {
  color: #cccccc;
  opacity: 0.3;
}
input::-webkit-file-upload-button {
  -webkit-appearance: none;
  font-size: 14px;
  height: 100%;
  padding: 0px 24px;
  background-color: #3fbb9b;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
input[type="file"] {
  color: rgba(255, 255, 255, 0.3);
}

.btnGroup {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 12px;
}
/* Support Hover ==================================*/
@media (hover: hover) {
  .prevbtn:hover,
  .nextbtn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgb(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
  }
  .add:hover {
    color: #fff;
    background-color: rgba(81, 154, 186, 0.7) !important;
    border: 1px solid #519aba;
    box-shadow: 0 0 14px 1px rgba(81, 154, 186, 1);
  }
  .del:hover {
    color: #fff;
    background-color: rgba(245, 121, 123, 0.7) !important;
    border: 1px solid #f5797b;
    box-shadow: 0 0 14px 1px rgba(245, 121, 123, 1);
  }

  button:hover {
    box-shadow: 0 6px rgba(0, 0, 0, 0.3);
    top: 3px;
  }
  button:active {
    box-shadow: none;
    top: 8px;
  }
  input:hover {
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 0px 1px #3fbb9b inset;
    color: #cccccc;
  }
  input:focus {
    color: #cccccc;
    background-color: rgba(63, 187, 155, 0.3);
    outline: none;
    box-shadow: 0 0 14px 1px #3fbb9b, 0 0 0 1px #3fbb9b inset;
  }
  input[type="file"]:focus {
    background-color: rgba(0, 0, 0, 0.3);
    color: #cccccc;
    outline: none;
    border: 1px solid #3fbb9b;
    box-shadow: none;
  }
}
/* Not Support Hover ==================================*/
@media (hover: none) {
  .add {
    box-shadow: none;
    /* color: rgba(225, 225, 225, 0.7); */
    color: #54bce8;
    background-color: rgba(81, 154, 186, 0.3);
    border: 1px solid #519aba;
  }
  .del {
    /* color: rgba(225, 225, 225, 0.7); */
    color: #f5797b;
    box-shadow: none;
    background-color: rgba(245, 121, 123, 0.4);
    border: 1px solid #f5797b;
  }
  input:focus {
    background-color: rgba(0, 0, 0, 0.3);
    color: #cccccc;
    outline: none;
    border: 1px solid #3fbb9b;
  }
  input:active {
    outline: none;
  }

  input[type="file"]:focus {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.3);
    outline: none;
    border: 1px solid rgb(255, 255, 255, 0.1);
  }
}
/* Mobile ==================================*/
@media screen and (max-width: 600px) {
  .function {
    flex-direction: column;
    gap: 20px;
  }
  form {
    width: 100%;
    margin: 0;
    display: flex;
  }

  .pagination {
    margin-left: 0;
    justify-content: space-between;
    padding: 0px 20px 0px 20px;
  }
  .prevbtn,
  .nextbtn {
    flex: 1;
  }
  .glass {
    padding: 20px 4px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: calc(100vw - 108px);
    margin: 20px 4px;
  }

  .btnGroup {
    flex-direction: column;
    gap: 0px;
  }

  .btn-download,
  .preview,
  input,
  .search > button {
    margin: 0px 20px;
  }

  .search {
    flex-direction: column;
    gap: 20px;
  }

  .search > button {
    width: calc(100% - 40px);
    min-height: 52px;
  }
}

.hide {
  display: none;
}
