/* Estilos básicos para a aplicação */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8257e5;
}

.donate-button {
  background-color: #8257e5;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  padding: 2rem;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background-color: #ffffff;
}

.uploader-input {
  display: none;
}

.uploader-button {
  background-color: #8257e5;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 1rem;
}

.preview-container {
  margin-top: 1rem;
  position: relative;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

.remove-button {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
}

.filter-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.filter-option:hover, .filter-option.selected {
  background-color: rgba(130, 87, 229, 0.1);
}

.filter-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.analyzing {
  text-align: center;
  padding: 2rem;
  margin: 2rem 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analyzing-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.dots {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 20px;
}

.dots:after {
  content: '...';
  font-size: 1.5rem;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.ad-display {
  padding: 2rem;
  margin: 2rem 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.ad-display p {
  margin-bottom: 1rem;
}

.continue-button {
  background-color: #8257e5;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.result-card {
  padding: 2rem;
  margin: 2rem 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.result-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.result-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #8257e5;
  margin: 1rem 0;
}

.result-justification {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.share-button {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: white;
}

.share-button svg {
  margin-right: 0.5rem;
}

.facebook {
  background-color: #1877f2;
}

.twitter {
  background-color: #1da1f2;
}

.whatsapp {
  background-color: #25d366;
}

.instagram {
  background-color: #e1306c;
}

.try-again-button {
  background-color: #8257e5;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 1rem;
}

.donation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.donation-text {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #555;
}

.donation-button {
  background-color: #8257e5;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.donation-button svg {
  margin-right: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 600px) {
  .action-buttons {
    flex-direction: column;
  }
  
  .share-button {
    width: 100%;
  }
}