@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(to bottom, #eef3ff, #dbe7ff);
  color: #222;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}


.container input,
.container select {
  max-width: 480px;
  margin: 0 auto 16px auto;
  display: block;
}

.container button {
  max-width: 200px;
  margin: 12px auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;             
  text-align: center;
}

.dashboard-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(30, 60, 120, 0.18);
}

h1,
h2,
h3 {
  color: #1e3a8a;
  font-weight: 600;
}

h1 {
  text-align: center;
  margin-bottom: 28px;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  transition: 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

label {
  font-size: 14px;
  color: #374151;
}

button,
.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn.primary,
button {
  background: linear-gradient(135deg, #4f6ef7, #3b5bdb);
  color: #fff;
}

.btn.primary:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(79, 110, 247, 0.35);
}

.analytics-trigger-card button {
  background: #f1f5ff;
  color: #1e3a8a;
  border: 1px solid #dbe3ff;
}

.analytics-trigger-card button:hover {
  background: #e0e7ff;
}

.dashboard-container > button {
  margin-top: 30px;
  width: 100%;
  background: linear-gradient(135deg, #4f6ef7, #3b5bdb);
}

#dashboard-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 24px;
}

.card {
  background: linear-gradient(180deg, #ffffff, #f8faff);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 14px;
}

.card p {
  font-size: 15px;
  margin: 6px 0;
  color: #374151;
}

.analytics-trigger-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

#resume-onboarding-container {
  grid-column: span 2;
}

#resume-onboarding-container .card {
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  border: 1px dashed #60a5fa;
  text-align: center;
}

#resume-onboarding-container p {
  font-weight: 500;
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal-card {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  padding: 28px 32px;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  animation: popIn 0.25s ease-out;
}
.modal-card h2 {
  padding-right: 48px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #60a5fa;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.modal-close span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.modal-close:hover {
  background: #d85757;
  transform: scale(1.05);
}


.agent-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 10px;
}

.agent-badge.adjust {
  background: #fff7ed;
  color: #9a3412;
}

.agent-badge.abort {
  background: #fee2e2;
  color: #991b1b;
}

.agent-badge.hold {
  background: #e0f2fe;
  color: #075985;
}

.agent-badge.switch {
  background: #dcfce7;
  color: #166534;
}

.wizard {
  max-width: 960px;
  margin: 40px auto;
}

.step {
  display: none;
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.step.active {
  display: block;
}

.controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.controls button {
  flex: 1;
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  #dashboard-content {
    grid-template-columns: 1fr;
  }

  #resume-onboarding-container {
    grid-column: span 1;
  }

  .controls {
    flex-direction: column;
  }
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  padding: 36px 40px;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d6dbe8;
  margin-bottom: 16px;
  font-size: 15px;
}

.auth-card button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b74e8, #4f6be6);
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
}

.auth-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 107, 230, 0.35);
}

.auth-card p {
  margin-top: 14px;
  font-size: 14px;
}

.auth-card a {
  color: #5b74e8;
  font-weight: 500;
}

.insights-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.insight-card {
  padding: 16px;
  border-radius: 12px;
  background: #767bd6;
  border-left: 5px solid #888;
}

.insight-card.high { border-left-color: #ff4d4f; }
.insight-card.medium { border-left-color: #faad14; }
.insight-card.low { border-left-color: #52c41a; }

.insight-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.8;
}

.insight-message {
  margin: 10px 0;
  font-weight: 500;
}

.insight-confidence {
  font-size: 12px;
  opacity: 0.7;
}
.insights-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.insight-card {
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border-left: 5px solid #888;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.insight-card.high { border-left-color: #ff4d4f; }
.insight-card.medium { border-left-color: #faad14; }
.insight-card.low { border-left-color: #52c41a; }

.insight-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.8;
}

.insight-message {
  margin: 10px 0;
  font-weight: 500;
}

.insight-confidence {
  font-size: 12px;
  opacity: 0.7;
}
