:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0b1020;
  color: #e7ecf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b2b5c 0%, #0b1020 45%, #070a14 100%);
}

.top-bar {
  background: rgba(12, 17, 36, 0.85);
  color: #f4f7ff;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(96, 134, 255, 0.2);
  box-shadow: 0 25px 60px rgba(7, 12, 24, 0.45);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.7rem;
  margin: 0 0 0.5rem;
  color: rgba(152, 180, 255, 0.7);
}

.top-bar h1 {
  margin: 0 0 0.25rem;
}

.top-bar p {
  margin: 0;
  opacity: 0.85;
}

.user-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 600;
}

main {
  padding: 2rem 2.5rem 4rem;
}

.hidden {
  display: none;
}

.auth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(15, 22, 44, 0.92);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 25px 60px rgba(4, 8, 18, 0.5);
  border: 1px solid rgba(96, 134, 255, 0.2);
  backdrop-filter: blur(12px);
}

.card h2 {
  margin-top: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #c7d2f2;
}

input,
select,
textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(96, 134, 255, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  background: rgba(9, 14, 28, 0.85);
  color: #f0f3ff;
}

button {
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #4f7dff, #7f5bff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(79, 125, 255, 0.35);
}

button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e4ebff;
  border: 1px solid rgba(96, 134, 255, 0.3);
  box-shadow: none;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.search-controls {
  display: flex;
  gap: 1rem;
}

.form-panel {
  background: rgba(15, 22, 44, 0.92);
  padding: 1.8rem;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(4, 8, 18, 0.5);
  border: 1px solid rgba(96, 134, 255, 0.2);
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.stage-column {
  background: rgba(11, 17, 34, 0.85);
  padding: 1.2rem;
  border-radius: 18px;
  min-height: 320px;
  border: 1px solid rgba(96, 134, 255, 0.18);
}

.stage-column h3 {
  margin-top: 0;
}

.survey-card {
  background: rgba(10, 16, 32, 0.9);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 18px 35px rgba(4, 8, 18, 0.45);
  border: 1px solid rgba(96, 134, 255, 0.12);
}

.survey-card:last-child {
  margin-bottom: 0;
}

.survey-meta {
  font-size: 0.85rem;
  color: #93a0c4;
}

.survey-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.survey-actions button {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.survey-actions button:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(209, 220, 255, 0.6);
  cursor: not-allowed;
}

.empty-state {
  background: rgba(15, 22, 44, 0.92);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(4, 8, 18, 0.5);
  border: 1px solid rgba(96, 134, 255, 0.2);
}

.empty-state h3 {
  margin-top: 0;
}

.empty-state.compact {
  padding: 1.5rem;
}

.helper-text {
  font-size: 0.75rem;
  color: rgba(154, 176, 232, 0.75);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.file-pill {
  background: rgba(79, 125, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #cdd8ff;
  border: 1px solid rgba(96, 134, 255, 0.3);
}

.file-pill.empty {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(200, 210, 235, 0.7);
}

.activity-panel {
  margin-top: 2.5rem;
  background: rgba(15, 22, 44, 0.92);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(96, 134, 255, 0.2);
  box-shadow: 0 20px 45px rgba(4, 8, 18, 0.5);
}

.activity-log {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid rgba(96, 134, 255, 0.18);
}

.activity-time {
  font-size: 0.75rem;
  color: rgba(160, 178, 235, 0.75);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-controls {
    width: 100%;
  }

  .search-controls input,
  .search-controls select {
    flex: 1;
  }
}
