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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

header {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

header h1 {
  color: #667eea;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: #666;
  font-size: 1.1rem;
}

.calculator {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.calculator h2 {
  margin-bottom: 1.5rem;
  color: #667eea;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator h2::before {
  content: "🤰";
  font-size: 2rem;
}

form label {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: #555;
  font-size: 1rem;
}

form input {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

form input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  margin-top: 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  width: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

button:active {
  transform: translateY(0);
}

.resultados {
  margin-top: 2rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.resultados h3 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resultados h3::before {
  content: "📊";
  font-size: 1.5rem;
}

.resultados h4 {
  color: #667eea;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resultado-card {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.resultado-card p {
  margin: 0.6rem 0;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.grafico {
  margin: 1.5rem 0;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.grafico-barra {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.8s ease;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
  position: relative;
  overflow: hidden;
}

.grafico-barra::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.dica-semana {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 12px;
  font-style: italic;
  border-left: 4px solid #fdcb6e;
  box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.dica-semana strong {
  color: #d63031;
  font-size: 1.1rem;
}

/* Card da Lista do Bebê Amazon */
.amazon-registry-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #ff9900;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.amazon-registry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.25);
  background-color: #fff8e1;
}

/* Card Mercado Livre - Kit Enxoval */
.ml-registry-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border: 2px solid #e74c3c;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
  position: relative;
  overflow: hidden;
}

.ml-registry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.25);
  background: linear-gradient(135deg, #ffd166 0%, #ffb142 100%);
}

.ml-registry-card::before {
  content: "🔥";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  z-index: 1;
}

.registry-icon {
  font-size: 2rem;
  margin-right: 15px;
  z-index: 2;
}

.registry-content {
  flex: 1;
  z-index: 2;
}

.registry-content h4 {
  color: #d35400;
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.ml-registry-card .registry-content h4 {
  color: #c0392b;
}

.registry-content p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.registry-arrow {
  color: #ff9900;
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  z-index: 2;
}

.ml-registry-card .registry-arrow {
  color: #e74c3c;
}

/* Timeline */
.timeline-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-item {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-left: 3px solid #667eea;
  margin-left: 1rem;
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 1.2rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-item.completed::before {
  background: #00b894;
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.2);
}

.timeline-item h5 {
  color: #667eea;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.timeline-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.acoes {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.acoes button {
  flex: 1;
  min-width: 150px;
  margin: 0;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.acoes button:hover {
  background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.info {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.info h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info h2::before {
  content: "ℹ️";
  font-size: 1.8rem;
}

.info p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}

footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border-radius: 20px;
  max-width: 800px;
  margin: 2rem auto 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.footer-calculators {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
}

.footer-calculators p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-calculators a {
  display: inline-block;
  margin: 0.5rem 0.8rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.footer-calculators a:hover {
  background: white;
  color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.footer-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-links a:hover {
  color: #764ba2;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

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

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  margin: 5% auto;
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.modal-content h3 {
  color: #667eea;
  margin: 1.5rem 0 1rem;
  font-size: 1.4rem;
}

.modal-content p {
  margin: 1rem 0;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

.close, .close-compartilhar, .close-imc {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover, .close-compartilhar:hover, .close-imc:hover {
  color: #667eea;
}

#copiarLinkBtn {
  width: 100%;
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  margin-bottom: 1rem;
}

#whatsappLink, #telegramLink {
  display: block;
  margin: 0.8rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#whatsappLink:hover, #telegramLink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

#telegramLink {
  background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

#telegramLink:hover {
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

#resultadoIMC {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
  border-left: 4px solid #4caf50;
}

#resultadoIMC h3 {
  color: #2e7d32;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

#resultadoIMC p {
  margin: 0.8rem 0;
  font-weight: 600;
  color: #2e7d32;
  font-size: 1.05rem;
}

/* Responsividade */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .calculator, .info {
    padding: 1.5rem;
  }
  
  .acoes {
    flex-direction: column;
  }
  
  .acoes button {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-calculators a {
    display: block;
    margin: 0.5rem 0;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 10% auto;
  }
}

/* Responsividade para o card da Amazon e Mercado Livre em telas pequenas */
@media (max-width: 480px) {
  .amazon-registry-card,
  .ml-registry-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .registry-icon {
    margin: 0 0 10px 0;
  }
  
  .registry-arrow {
    display: none;
  }
}