:root {
  --primary-color: #23b2bd;
  --primary-font: #359b91;
  --secondary-color: #d67272;
  --text-color: #23bd9e;
  --input-bg-color: #e6e6e6;
  --dark-font-color: #505050;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 100;
  src: url("../font/NotoSansTC-Thin.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 300;
  src: url("../font/NotoSansTC-Light.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  src: url("../font/NotoSansTC-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 500;
  src: url("../font/NotoSansTC-Medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 700;
  src: url("../font/NotoSansTC-Bold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100;
  src: url("../font/RobotoMono-Thin.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 300;
  src: url("../font/RobotoMono-Light.ttf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400;
  src: url("../font/RobotoMono-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 500;
  src: url("../font/RobotoMono-Medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 700;
  src: url("../font/RobotoMono-Bold.ttf") format("opentype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: "Noto Sans TC", "Roboto Mono", monospace, sans-serif;
  font-size: 1rem;
  height: 100vh;
  background-color: var(--text-color);
}

input,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1340px;
  }
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.overflow-hidden {
  overflow: hidden;
}

.layout {
  z-index: 1;
}

.layout.main-content {
  margin-left: 35px;
  background-color: #fff;
}

.layout .left {
  width: 30px;
  height: 100%;
  background-color: var(--primary-color);
}

.layout .header {
  box-shadow: 3px 1px 4px #0002;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 20px;
}

.layout .header i {
  color: var(--primary-color);
}

.layout .content {
  padding: 40px 90px 80px;
  display: flex;
  flex-direction: column;
}

.sidebar {
  color: var(--primary-font);
  overflow-x: hidden !important;
  position: relative;
  background-color: #fff;
  box-shadow: 0px 2px 10px #0005;
}

.sidebar .sidebar-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.sidebar .sidebar-layout .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 30px;
}

.sidebar .sidebar-layout .sidebar-header img {
  width: 110px;
  transition: 0.3s all ease;
}

.sidebar.collapsed .sidebar-layout .sidebar-header img {
  width: 50px;
}

.sidebar .sidebar-layout .sidebar-content {
  flex-grow: 1;
  padding: 10px 0;
}

.layout .sidebar .menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.layout .sidebar .menu .menu-item {
  transition: 0.4s all ease;
  position: relative;
}

.layout .sidebar .menu .menu-item:not([disabled]):hover,
.layout .sidebar .menu .menu-item.active {
  background-color: var(--text-color);
}

.layout .sidebar .menu .menu-item:not([disabled]):hover a,
.layout .sidebar .menu .menu-item.active a {
  color: #fff !important;
}

.layout .sidebar .menu .menu-item > a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  height: 45px;
  padding: 0 15px;
  color: var(--primary-color);
}

.layout .sidebar .menu .menu-item a .menu-title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.sidebar .submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 50px;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidebar .submenu.open {
  max-height: 200px; /* Adjust the value as needed */
  opacity: 1;
}

.sidebar .submenu li a {
  padding: 15px 10px;
  text-align: center;
  background-color: var(--text-color);
  transition: 0.2s all linear;
  cursor: pointer;
  display: block;
}

.sidebar .submenu li a:hover {
  background-color: var(--primary-font);
}

.sidebar .menu .menu-title-link .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s;
}

.sidebar .menu .menu-item.active .arrow {
  transform: rotate(180deg);
}

@media (min-width: 1650px) {
  .layout .content {
    padding: 40px 190px 80px;
  }
}

@media (max-width: 992px) {
  #btn-collapse {
    display: none;
  }

  .layout.main-content {
    margin-left: 0px;
  }
}

@media (max-width: 768.98px) {
  .layout .content {
    padding: 20px 25px 90px;
  }
}

/* Main Content */
.pageTitle {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 50px;
}

.inputGroup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.inputGroup label {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 500;
  min-width: 90px;
}

.inputGroup input:not([type="radio"]):not([type="checkbox"]),
.inputGroup textarea,
.inputGroup select {
  font-family: inherit;
  background-color: var(--input-bg-color);
  color: var(--dark-font-color);
  border: none;
  height: 50px;
  width: 100%;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px;
}

.inputGroup textarea {
  height: 200px;
  resize: none;
}

.btn {
  width: 100%;
  cursor: pointer;
  border: none;
  padding: 15px;
  border-radius: 10px;
  transition: 0.2s all ease;
  font-size: 1rem;
  font-weight: 600;
}

.uploadArea .title {
  min-width: 90px;
}

.uploaded {
  display: flex;
  width: 100%;
  gap: 20px;
  margin-top: 80px;
}

.uploaded > .title {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 500;
  min-width: 90px;
}

.uploaded .blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  width: 100%;
}

.uploaded .blocks .block {
  width: 100%;
}

.actionBtns {
  width: 100%;
  display: flex;
  gap: 20px;
  padding-left: 110px;
}

.btn.btn-upload {
  background-color: var(--primary-color);
  color: #fff;
}

.btn.btn-upload:not([disabled]):hover {
  background-color: var(--text-color);
}

.btn.btn-delete {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn.btn-delete:not([disabled]):hover {
  background-color: var(--secondary-color);
}

.btn.btn-save {
  background-color: var(--text-color);
  color: #fff;
}

.btn.btn-save:not([disabled]):hover {
  background-color: var(--secondary-color);
}

.editBtn {
  padding-left: 110px;
  margin-top: 15px;
}

.editBtn .btn.btn-edit {
  background-color: var(--secondary-color);
  color: #fff;
}

.editBtn .btn.btn-edit:not([disabled]):hover {
  background-color: var(--secondary-color);
}

.editBtns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.editBtns button {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  transition: 0.3s all;
}

.editBtns .edit {
  background-color: var(--text-color);
}

.editBtns .edit:not([disabled]):hover {
  background-color: #4a9889;
}

.editBtns .delete {
  background-color: var(--secondary-color);
}

.editBtns .delete:not([disabled]):hover {
  background-color: #b35858;
}

.editBtns .release {
  width: 100%;
  grid-column: 1 / -1;
  background-color: #00a6ff;
}

.editBtns .release:not([disabled]):hover {
  background-color: #b35858;
}

.pageBtns {
  display: flex;
  gap: 20px;
}

.pageBtns .btn {
  height: 55px;
  background-color: var(--text-color);
  color: #fff;
  width: 220px;
  margin-bottom: 40px;
  transition: 0.3s all ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pageBtns .btn.active,
.pageBtns .btn:not([disabled]):hover {
  background-color: var(--secondary-color);
}

@media (max-width: 768.98px) {
  .pageTitle {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .inputGroup {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .btn {
    padding: 10px;
  }

  .actionBtns {
    gap: 15px;
    padding-left: 0;
  }

  .editBtn {
    padding-left: 0;
  }
}

.loggedIn {
  display: none;
}

.btn.btn-create {
  background-color: var(--primary-color);
  color: #fff;
  margin-bottom: 30px;
  width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.btn-create:not([disabled]):hover {
  background-color: var(--text-color);
}

.subContentWrap {
  box-shadow: inset 0px 0px 5px #0005;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 20px;
}

@media (min-width: 769px) {
  .d-md-none {
    display: none;
  }

  .d-md-block {
    display: block;
  }
}

@media (max-width: 768.98px) {
  .d-md-none {
    display: block;
  }

  .d-md-block {
    display: none;
  }
}

input[disabled] {
  opacity: 0.5;
  /* 透明度 */
  cursor: not-allowed;
  /* 指標類型 */
}

.detailBtnWrap {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: flex-end;
}

.detailBtnWrap button {
  width: 250px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
