body {
  font-family: 'Poppins', sans-serif;
  background-color: #6b21a8;
  color: white;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-container {
  width: 90%;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  text-align: left;
  margin: 2rem auto;
  position: relative;
}

h1, h2 {
  font-family: 'Poppins';
  text-align: left;
  margin-top: 0;
}

.gradient-text {
  background: linear-gradient(90deg, #c084fc, #a855f7, #7e22ce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.logout-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.form-create-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 40px auto;
}

#new-form-name {
  padding: 10px;
  font-size: 16px;
  width: 300px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
}

.gradient-btn {
  background: linear-gradient(90deg, #c084fc, #a855f7, #7e22ce);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  margin: 2rem 0;
}

footer {
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #a855f7;
}

#new-form-name {
  background: #2e1065;
  color: #f3e8ff;
  border: 1.5px solid #a855f7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}

#new-form-name:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 2px #a855f733;
}

.form-list-item {
  border: 2px solid #e9d5ff;
  border-radius: 12px;
  padding: 1.2rem 1.5rem 1.8rem 1.5rem;
  margin-bottom: 1.2rem;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.form-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.form-list-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.form-list-meta {
  font-size: 0.98rem;
  color: #d1c4e9;
}

.form-list-date {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  font-size: 0.85rem;
  color: #bdbdbd;
  opacity: 0.85;
}

.form-list-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.btn-edit {
  background: linear-gradient(90deg, #a855f7, #c084fc, #7e22ce);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit:hover {
  background: linear-gradient(90deg, #c084fc, #a855f7, #7e22ce);
}

.btn-unpublish {
  background: linear-gradient(90deg, #f87171, #ef4444, #b91c1c);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unpublish:hover {
  background: linear-gradient(90deg, #ef4444, #f87171, #b91c1c);
}

.btn-publish {
  background: linear-gradient(90deg, #4ade80, #22c55e, #166534);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-publish:hover {
  background: linear-gradient(90deg, #22c55e, #4ade80, #166534);
}

.btn-view, .btn-view-responses {
  background: rgba(255,255,255,0.08);
  color: lightgray;
  border: 1.5px solid #c084fc;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view:hover, .btn-view-responses:hover {
  background: #c084fc;
  color: #fff;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal {
  background: #ffffff;
  color: #6b21a8;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.7rem;
  color: #6b21a8;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.modal-close:hover {
  opacity: 1;
}
.modal input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #a1a1aa;
  background: #a1a1aa;
  color: #fff;
  margin-top: 0.5rem;
  font-size: 1rem;
}
.modal button {
  background: red;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.modal button:hover {
  background: #7e22ce;
}
.error-msg {
  color: #f87171;
  font-size: 0.95rem;
  margin: 0.5rem 0 0 0;
  display: none;
}