@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap");
body {
  font-family: "Inter", sans-serif;
  color: #e2e8f0;
}
.aurora-background {
  background: linear-gradient(
    135deg,
    #1b3a8e,
    #33862e,
    #483081,
    #943c91,
    #9c5930
  );
  background-size: 400% 400%;
  animation: aurora-flow 20s ease infinite;
}
@keyframes aurora-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
header {
  transition: all 0.3s ease-in-out;
  background-color: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-scrolled {
  background-color: rgba(15, 23, 42, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
nav a {
  color: #cbd5e1;
}
nav a:hover {
  color: white;
}
nav a.text-indigo-500 {
  color: #a5b4fc !important;
  font-weight: 600;
}
[data-animate="reveal-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--animation-delay, 0s);
}
[data-animate="reveal-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.create-survey-btn,
.secondary-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(165, 180, 252, 0.2);
  border: 1px solid transparent;
  cursor: pointer;
}
.create-survey-btn {
  color: white;
  background: linear-gradient(to right, #818cf8, #c084fc);
}
.secondary-action-btn {
  color: #e2e8f0;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.create-survey-btn:hover,
.secondary-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(165, 180, 252, 0.3);
}

.loading-state,
.no-surveys-message {
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: #94a3b8;
}
.no-surveys-message i {
  font-size: 3rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: block;
}
.no-surveys-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.survey-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.survey-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.survey-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.survey-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}
.survey-info p {
  font-family: monospace;
  font-size: 0.8rem;
  color: #94a3b8;
}
.survey-stats {
  display: flex;
  gap: 1.5rem;
  background-color: rgba(15, 23, 42, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
.stat-item {
  text-align: center;
}
.stat-item .count {
  font-weight: 700;
  font-size: 1.25rem;
  color: #a5b4fc;
}
.stat-item .label {
  font-size: 0.75rem;
  color: #94a3b8;
}
.survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.action-btn {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}
.action-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}
.action-btn.delete {
  color: #fca5a5;
}
.action-btn.delete:hover {
  background-color: #ef4444;
  color: white;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
.modal-description {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.share-link-wrapper {
  display: flex;
  margin-bottom: 1.5rem;
}
#share-link-input {
  flex-grow: 1;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid #475569;
  border-right: none;
  color: #a5b4fc;
  padding: 0.75rem;
  border-radius: 0.5rem 0 0 0.5rem;
  font-family: monospace;
}
#copy-link-btn {
  background-color: #4f46e5;
  border: 1px solid #4f46e5;
  color: white;
  padding: 0 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
#copy-link-btn:hover {
  background-color: #6366f1;
}
.modal-close-btn {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-icon-danger {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem auto;
  background-color: #fca5a51a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon-danger i {
  font-size: 2rem;
  color: #f87171;
}
.modal-actions {
  display: flex;
  gap: 1rem;
}
.modal-cancel-btn,
.modal-confirm-btn-danger {
  flex: 1;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-cancel-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
.modal-cancel-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.modal-confirm-btn-danger {
  background-color: #dc2626;
  color: white;
}
.modal-confirm-btn-danger:hover {
  background-color: #ef4444;
  transform: translateY(-2px);
}

footer.bg-slate-800 {
  background-color: #1e293b;
}
#scrollToTopBtn {
  background-color: #818cf8;
}
#scrollToTopBtn:hover {
  background-color: #6366f1;
}
#mobile-menu {
  background-color: #1e293b;
  border-top-color: rgba(255, 255, 255, 0.1);
}
#mobile-menu a {
  color: #cbd5e1;
}
#mobile-menu a:hover {
  color: white;
}
#mobile-menu a.text-indigo-500 {
  color: #a5b4fc !important;
}
main > div > p {
  color: #e2e8f0;
}
.toast-message {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* 确保消息有足够的宽度 */
  text-align: center;
}

.toast-success {
  background-color: #22c55e;
  color: white;
}

.toast-error {
  background-color: #ef4444;
  color: white;
}

.toast-info {
  background-color: #3b82f6;
  color: white;
}

.toast-warning {
  background-color: #f59e0b;
  color: white;
}

.modal-confirm-btn {
  background-color: #4f46e5;
  color: white;
  flex: 1;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-confirm-btn:hover {
  background-color: #6366f1;
  transform: translateY(-2px);
}
