#quizz-colchao-app {
  display: flex;
  flex-direction: row;
  background: #e6f0fa;
  border-radius: 8px;
  overflow: hidden;
  min-height: 500px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 800px) {
  #quizz-colchao-app {
    flex-direction: column;
    min-height: auto;
  }
}
.quiz-left {
  flex: 0 0 45%;
  padding: 40px 32px;
  background: #e6f0fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

.quiz-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.quiz-right {
  flex: 0 0 55%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.quiz-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Estados de loading e erro */
.quiz-loading {
  text-align: center;
  padding: 40px 20px;
}

.quiz-loading h3 {
  color: #2a7de1;
  margin-bottom: 20px;
}

.quiz-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e6f0fa;
  border-top: 4px solid #2a7de1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.quiz-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.quiz-placeholder p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 300px;
}

.quiz-option {
  background: #fff;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  position: relative;
  z-index: 1;
}

.quiz-option:hover {
  border-color: #b3c6e0;
  background: #f8f9fa;
}

.quiz-option.selected {
  border: 2px solid #2a7de1;
  background: #eaf4ff;
  color: #2a7de1;
  font-weight: 500;
}

.quiz-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.quiz-option img {
  max-width: 60px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 4px;
}

.quiz-option-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.quiz-option-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.quiz-option-image {
  flex: 0 0 50%;
  text-align: center;
}

.quiz-option-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.quiz-option.selected .quiz-option-image img {
  border-color: #2a7de1;
}

.quiz-btn {
  background: #2a7de1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s ease;
  min-width: 120px;
}

.quiz-btn:hover:not(:disabled) {
  background: #1e5bb8;
  transform: translateY(-1px);
}

.quiz-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.quiz-btn-secondary {
  background: #6c757d;
  color: #fff;
}

.quiz-btn-secondary:hover:not(:disabled) {
  background: #5a6268;
}

.quiz-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-start;
}

.quiz-buttons .quiz-btn {
  margin-top: 0;
}

.quiz-loja-encontrada {
  background: #e8f5e8;
  border: 1px solid #28a745;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
}

.quiz-loja-encontrada h4 {
  color: #28a745;
  margin: 0 0 12px 0;
  font-size: 16px;
}

.quiz-loja-info {
  margin-bottom: 16px;
}

.quiz-loja-info p {
  margin: 4px 0;
  font-size: 14px;
}

.quiz-loja-info strong {
  color: #2a7de1;
}

.quiz-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
  color: #721c24;
}

.quiz-error p {
  margin: 0 0 12px 0;
}

/* Inputs do quiz */
.quiz-left input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
  background: #fff;
}

.quiz-left input:focus {
  outline: none;
  border-color: #2a7de1;
  box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.1);
}

.quiz-left input[type="date"] {
  font-family: inherit;
}

.quiz-left h3 {
  color: #2a7de1;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.quiz-left p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== ESTILOS DO ADMIN ===== */

/* Painel Admin Geral */
.qc-admin-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.qc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e1e5e9;
}

.qc-header h2 {
  margin: 0;
  color: #23282d;
  font-size: 24px;
}

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

/* Botões */
.qc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.qc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qc-primary-btn {
  background: #0073aa;
  color: white;
}

.qc-primary-btn:hover:not(:disabled) {
  background: #005a87;
}

.qc-secondary-btn {
  background: #f7f7f7;
  color: #555;
  border: 1px solid #ddd;
}

.qc-secondary-btn:hover:not(:disabled) {
  background: #eee;
}

.qc-danger-btn {
  background: #dc3232;
  color: white;
}

.qc-danger-btn:hover:not(:disabled) {
  background: #a00;
}

.qc-edit-btn {
  background: #f0ad4e;
  color: white;
}

.qc-edit-btn:hover:not(:disabled) {
  background: #ec971f;
}

/* Formulário Modal */
.qc-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.qc-form-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.qc-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e5e9;
}

.qc-form-header h3 {
  margin: 0;
  color: #23282d;
}

.qc-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qc-close-btn:hover {
  color: #000;
}

.qc-form {
  padding: 24px;
}

.qc-form-group {
  margin-bottom: 20px;
}

.qc-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #23282d;
}

.qc-input, .qc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.qc-input:focus, .qc-select:focus {
  outline: none;
  border-color: #0073aa;
}

.qc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.qc-checkbox {
  margin: 0;
}

.qc-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

/* Grid de Lojas */
.qc-lojas-grid {
  display: grid;
  gap: 20px;
}

.qc-loja-card {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.qc-loja-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.qc-loja-info h4 {
  margin: 0 0 8px 0;
  color: #23282d;
  font-size: 18px;
  line-height: 1.4;
}

.qc-loja-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qc-status-ativo {
  background: #e8f5e8;
  color: #388e3c;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.qc-status-inativo {
  background: #ffebee;
  color: #d32f2f;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.qc-loja-cidade {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.qc-loja-actions {
  display: flex;
  gap: 8px;
}

.qc-loja-details {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: #666;
}

.qc-loja-details strong {
  color: #333;
  margin-right: 8px;
}

.qc-loja-agendamento {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.qc-agendamento-status {
  background: #e8f5e8;
  color: #388e3c;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}

.qc-agendamento-horarios {
  font-size: 12px;
  color: #666;
}

/* Seção de Agendamento */
.qc-agendamento-section {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.qc-agendamento-section h4 {
  margin: 0 0 16px 0;
  color: #23282d;
  font-size: 16px;
}

.qc-horarios-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.qc-horario-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qc-horario-item .qc-input {
  width: 120px;
}

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

.qc-dia-checkbox {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 0;
}

.qc-dia-checkbox:hover {
  background: #f8f9fa;
}

/* Faixa de CEP */
.qc-cep-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Estado Vazio */
.qc-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.qc-empty-icon {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
}

.qc-empty-state h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.qc-empty-state p {
  margin: 0;
  font-size: 16px;
}

/* Spinner */
.qc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: qc-spin 1s linear infinite;
}

@keyframes qc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Notificações */
.qc-notificacao {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.qc-notificacao.qc-show {
  transform: translateX(0);
}

.qc-notificacao-sucesso {
  background: #4caf50;
}

.qc-notificacao-erro {
  background: #f44336;
}

/* Filtros */
.qc-filtros-section {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.qc-filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.qc-filtro-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Estatísticas */
.qc-stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.qc-stat-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.qc-stat-number {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 8px;
}

.qc-stat-label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid de Agendamentos */
.qc-agendamentos-grid {
  display: grid;
  gap: 20px;
}

.qc-agendamento-card {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.qc-agendamento-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.qc-agendamento-info h4 {
  margin: 0 0 8px 0;
  color: #23282d;
  font-size: 18px;
  line-height: 1.4;
}

.qc-agendamento-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qc-agendamento-data {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.qc-agendamento-horario {
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.qc-agendamento-loja {
  background: #e8f5e8;
  color: #388e3c;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.qc-agendamento-actions {
  display: flex;
  gap: 8px;
}

.qc-agendamento-details {
  display: grid;
  gap: 12px;
}

.qc-agendamento-contato {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.qc-agendamento-contato strong {
  color: #333;
  margin-right: 8px;
}

.qc-agendamento-criado {
  text-align: right;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
  .qc-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .qc-header-actions {
    justify-content: center;
  }
  
  .qc-filtros-grid {
    grid-template-columns: 1fr;
  }
  
  .qc-stats-section {
    grid-template-columns: 1fr;
  }
  
  .qc-form-modal {
    width: 95%;
    margin: 20px;
  }
  
  .qc-form-actions {
    flex-direction: column;
  }
  
  .qc-form-actions .qc-btn {
    width: 100%;
    justify-content: center;
  }
} 