* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gradient-start: #f09433;
  --gradient-mid: #bc1888;
  --gradient-end: #5851db;
  --bg-color: #000000;
  --card-bg: #121212;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --border-color: #262626;
  --success: #00c853;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* App Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg);
  min-height: 100vh;
  position: relative;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 3px;
  background: var(--border-color);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  width: 0%;
  transition: width 0.3s ease;
}

/* Screens */
.screen {
  display: none;
  padding: 60px 24px 24px;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

.screen.active {
  display: block;
}

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

/* Content */
.content {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
}

/* Substituindo estilo do logo SVG pela imagem de perfil */
.profile-image {
  margin-bottom: 32px;
  display: inline-block;
}

.profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(#121212, #121212) padding-box,
    linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end)) border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 24px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--bg-color);
}

/* Quiz Header */
.quiz-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.question-counter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Quiz Content */
.quiz-content {
  padding-top: 80px;
}

.question-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: left;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  padding: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.option:active {
  transform: scale(0.98);
}

.option.selected {
  border-color: var(--gradient-mid);
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.1), rgba(188, 24, 136, 0.1));
}

/* Form */
.form-header {
  margin-bottom: 32px;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group input {
  width: 100%;
  padding: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  outline: none;
  /* Adicionando cor branca para o texto digitado */
  color: var(--text-primary);
}

.input-group input:focus {
  border-color: var(--gradient-mid);
  background: var(--card-bg);
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  background: var(--card-bg);
  padding: 0 4px;
  color: var(--gradient-mid);
}

/* Success Screen */
.success-content {
  padding-top: 80px;
}

/* Adicionando estilo para imagem de perfil na tela de sucesso */
.success-profile {
  margin-bottom: 16px;
}

.success-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(#121212, #121212) padding-box,
    linear-gradient(135deg, var(--gradient-start), var(--gradient-mid)) border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-note {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 24px;
}

/* Admin Login */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Admin Dashboard */
.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header h1 {
  margin-bottom: 4px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Filters */
.filters {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  /* Adicionando cor branca para o texto digitado no filtro do admin */
  color: var(--text-primary);
}

.filter-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 16px;
  background: var(--bg-color);
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Leads Container */
.leads-container {
  display: grid;
  gap: 16px;
}

.no-leads {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.lead-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--border-color);
  transition: all 0.2s;
}

.lead-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.lead-card.high-potential {
  border-left-color: var(--success);
}

.lead-card.medium-potential {
  border-left-color: #ff9800;
}

.lead-card.low-potential {
  border-left-color: #f44336;
}

.lead-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.lead-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.lead-company {
  color: var(--text-secondary);
  font-size: 14px;
}

.lead-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.lead-badge.high {
  background: rgba(0, 200, 83, 0.1);
  color: var(--success);
}

.lead-badge.medium {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.lead-badge.low {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.lead-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item {
  font-size: 14px;
}

.contact-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 4px;
}

.contact-value {
  color: var(--text-primary);
  font-weight: 500;
}

.lead-answers {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.lead-answers h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.answer-item {
  margin-bottom: 8px;
  font-size: 14px;
}

.answer-question {
  color: var(--text-secondary);
  font-weight: 500;
}

.answer-value {
  color: var(--text-primary);
  margin-left: 8px;
}

.lead-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
