body {
  position: relative;
  font-family: "Noto Sans TC", sans-serif;
  background-color: #f8f8f8;
  background-image: url("/bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 248, 248, 0.9); /* 半透明遮罩，可自行調整透明度 */
  z-index: -1;
}
.bg-accent {
  background-color: var(--accent-color);
}

.upload-area {
  border: 2px dashed rgba(108, 117, 125, 0.3);
  transition: all 0.3s ease;
  background: linear-gradient(
    120deg,
    rgba(248, 249, 250, 0.7),
    rgba(241, 243, 245, 0.7)
  );
}

.upload-area:hover {
  border-color: #6c757d;
  background: linear-gradient(
    120deg,
    rgba(233, 236, 239, 0.8),
    rgba(222, 226, 230, 0.8)
  );
  transform: translateY(-2px);
}

.lock-icon {
  filter: drop-shadow(0 0 8px rgba(108, 117, 125, 0.5));
}

.gradient-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transition: all 0.3s ease;
  border: 1px solid rgba(222, 226, 230, 0.5);
}

.gradient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(108, 117, 125, 0.3);
}

.gradient-button {
  background: linear-gradient(to right, #56ab2f, #a8e063);
  transition: all 0.3s ease;
}

.gradient-button:hover {
  background: linear-gradient(to right, #6fcf47, #c4f68d);
  transform: translateY(-2px);
}

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.header-gradient {
  background: linear-gradient(120deg, #212529, #343a40, #495057);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blob-shape {
  position: absolute;
  z-index: -1;
  opacity: 0.3;
  filter: blur(50px);
}

.text-area-container {
  position: relative;
}

.text-area-container textarea {
  resize: none;
  transition: all 0.3s ease;
}

.text-area-container textarea:focus {
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

.character-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  color: #6c757d;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 10px;
}

.swal-confirm-btn {
  background: linear-gradient(
    to right,
    #374151,
    #4b5563
  ); /* gray-700 to gray-600 */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}
