/* ========================================
   MODE SELECTOR MODAL - Seleção de Modo
   ======================================== */

.mode-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.mode-selector-modal {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  animation: slideUp 0.4s ease;
}

.mode-selector-header {
  text-align: center;
  margin-bottom: 32px;
}

.mode-selector-header h2 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.mode-selector-header p {
  color: var(--gray);
  font-size: 1rem;
}

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

.mode-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mode-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mode-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.mode-card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.mode-card h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.mode-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.4;
}

.mode-selector-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.mode-btn {
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-btn-primary {
  background: var(--primary);
  color: var(--white);
}

.mode-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mode-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mode-btn-secondary {
  background: var(--light-gray);
  color: var(--gray);
}

.mode-btn-secondary:hover {
  background: var(--gray);
  color: var(--white);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 600px) {
  .mode-selector-modal {
    padding: 24px;
  }

  .mode-options {
    grid-template-columns: 1fr;
  }

  .mode-selector-header h2 {
    font-size: 1.4rem;
  }

  .mode-selector-actions {
    flex-direction: column;
  }

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