:root {
  --primary-color: #4361ee;
  --primary-gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
  --secondary-color: #f72585;
  --whatsapp-color: #25d366;
  --telegram-color: #0088cc;
  --light-bg: #f8f9fa;
  --dark-text: #333;
  --light-text: #f8f9fa;
  --border-radius: 12px;
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 800px;
  width: 100%;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

header {
  background: var(--primary-gradient);
  color: var(--light-text);
  padding: 2rem;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.logo i {
  font-size: 2rem;
  margin-right: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

main {
  padding: 2rem;
}

.search-box {
  display: flex;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
}

input[type="text"] {
  flex: 1;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

button {
  background: var(--primary-gradient);
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

button i {
  margin-right: 0.5rem;
}

.resultado-box {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
  animation: slideDown 0.3s ease;
}

.resultado-box.hidden {
  display: none;
}

.resultado-box h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.resultado-box h3 i {
  margin-right: 0.5rem;
}

.resultado-box p {
  margin-bottom: 0.5rem;
}

.resultado-box small {
  color: #666;
  font-size: 0.8rem;
}

.historico-box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.historico-header {
  background: var(--light-bg);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.historico-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.historico-header h3 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

#limpar-historico {
  background: transparent;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

#limpar-historico:hover {
  background: #f0f0f0;
  transform: none;
}

.historico-lista {
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.historico-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.historico-item:hover {
  background: #f9f9f9;
}

.historico-item:last-child {
  border-bottom: none;
}

.historico-item button {
  background: transparent;
  color: var(--primary-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.historico-item button:hover {
  background: rgba(67, 97, 238, 0.1);
  transform: none;
}

.historico-vazio {
  padding: 1.5rem;
  text-align: center;
  color: #888;
  font-style: italic;
}

footer {
  padding: 1.5rem 2rem;
  background: var(--light-bg);
  border-top: 1px solid #eee;
}

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

.botoes a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  color: white;
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
}

.btn-telegram {
  background-color: var(--telegram-color);
}

.botoes a i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.botoes a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 1s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  header {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 1.5rem;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  input[type="text"] {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-right: 1px solid #e0e0e0;
    border-bottom: none;
  }
  
  button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    justify-content: center;
  }
  
  .botoes {
    flex-direction: column;
  }
  
  .botoes a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  main {
    padding: 1rem;
  }
  
  .resultado-box, .historico-box {
    padding: 1rem;
  }
}
