body {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 75px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #352827;
  background-color: #fdfbf9;
}

.mac-window {
  flex-grow: 1;
  border: 2px solid #352827;
  background-color: #fdfbf9;
  border-radius: 6px;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 4px 4px 0 0;
  background-color: #e9f3ff;
  border-bottom: 2px solid #352827;
}

.three-icons {
  display: flex;
  gap: 8px;
}

.credits {
  font-size: 14px;
  color: #5d5d5a;
  text-decoration: underline;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-close {
  background-color: #ff5f57;
}

.dot-min {
  background-color: #febc2e;
}

.dot-max {
  background-color: #28c840;
}

.window-body {
  padding: 0 40px 40px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  height: 64px;
}

header #title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  color: #352827;
  text-decoration: none;
  margin: 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #352827;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #352827;
  border-radius: 6px;
  background-color: #e4e3bc;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-icon {
  position: relative;
  width: 20px;
  height: 20px;
  overflow: hidden;
}

.btn-icon::before,
.btn-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.btn-icon::before {
  background-image: url("../media/add.png");
}

.btn-icon::after {
  background-image: url("../media/arrow_forward.png");
  opacity: 0;
  transform: translate(-8px);
}

.btn:hover .btn-icon::before {
  opacity: 0;
  transform: translate(8px);
}

.btn:hover .btn-icon::after {
  opacity: 1;
  transform: translate(0);
}

.btn-label {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #352827;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.icon-btn:hover:not(:disabled) {
  transform: scale(1.06);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.close-icon {
  background-image: url("../media/close.png");
}

footer {
  margin-top: 20px;
  text-align: right;
  font-size: 14px;
}

footer a {
  color: #5d5d5a;
  text-decoration: underline;
}

#error_box {
  display: none;
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 2px solid #352827;
  border-radius: 6px;
  background-color: #f8e5e5;
}

#error_box::before {
  content: "Error: ";
  font-weight: 600;
}
