/* --- RESET & BASICS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
  color: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 40px 0;
}

/* --- GLASSMORPHISM CARD --- */
.card-container {
  width: 90%;
  max-width: 650px;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- PROGRESS BAR --- */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 35px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-text {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: right;
  margin-top: -30px;
  margin-bottom: 25px;
  font-weight: 500;
  z-index: 1;
  position: relative;
}

/* --- STEP TRANSITIONS --- */
.step {
  display: none;
  animation: fadeIn 0.5s ease forwards;
  z-index: 1;
  position: relative;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- TYPOGRAPHY --- */
h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  line-height: 1.2;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 20px;
  line-height: 1.4;
}

p.description {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- INPUTS & SELECTIONS --- */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar for options list */
.options-list::-webkit-scrollbar {
  width: 5px;
}

.options-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
}

.options-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
}

.options-list::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* Standard custom option card */
.option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.option-card:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.4);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  display: none;
}

.option-card::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin-right: 15px;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-card.selected {
  background: rgba(99, 102, 241, 0.12);
  border-color: #6366f1;
}

.option-card.selected::before {
  border-color: #6366f1;
  background: radial-gradient(circle, #6366f1 40%, transparent 40%);
}

.option-text {
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* --- EMOJI RATINGS GRID --- */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.emoji-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-card:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-5px);
}

.emoji-card input[type="radio"] {
  display: none;
}

.emoji-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: grayscale(10%) contrast(110%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.emoji-card.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.emoji-card.selected .emoji-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 223, 0, 0.6));
}

.emoji-card.selected .emoji-label {
  color: #818cf8;
}

/* --- TEXT AREA & TEXT INPUTS --- */
.input-text, .input-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px 20px;
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 35px;
}

.input-text:focus, .input-textarea:focus {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.input-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- BUTTONS --- */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  z-index: 1;
  position: relative;
}

.btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  flex-grow: 1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

/* --- WELCOME & SUCCESS SCREEN --- */
.welcome-screen, .success-screen {
  text-align: center;
  padding: 20px 10px;
}

.welcome-icon, .success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
}

.success-icon {
  color: #10b981;
  animation: scaleBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- ADMIN DASHBOARD LAYOUT --- */
.admin-body {
  background: #0b0f19;
  display: block;
  overflow-y: auto;
}

.admin-header {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 10px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.metric-icon {
  font-size: 2.5rem;
  background: rgba(99, 102, 241, 0.15);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #818cf8;
}

.metric-data h3 {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.metric-data .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
}

/* --- CHARTS GRID --- */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .emoji-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.chart-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #e2e8f0;
  border-left: 4px solid #6366f1;
  padding-left: 10px;
}

.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

/* --- TABLE CARD --- */
.table-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px;
  overflow-x: auto;
}

.table-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  border-left: 4px solid #6366f1;
  padding-left: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

th {
  padding: 12px 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

td {
  padding: 14px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.95rem;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* --- LOGIN GLASS CARD --- */
.login-card {
  width: 90%;
  max-width: 420px;
}
