:root {
  --primary-color: #b30000;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --border-color: #dddddd;
  --input-bg: #f5f5f5;
  --card-bg: #ffffff;
  --hover-color: #d10000;
  --footer-bg: #f8f8f8;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;
}

/* Conversor de Dólar */
.cotacao-info {
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.cotacao-info p {
  margin-bottom: 5px;
}

.conversor {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.input-group label {
  margin-bottom: 8px;
  font-weight: bold;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.prefix {
  position: absolute;
  left: 10px;
  color: #666;
  font-weight: bold;
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1.1rem;
  background-color: var(--input-bg);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(179, 0, 0, 0.2);
}

/* Taxa SELIC e Inflação */
.taxa-info {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.taxa-valor {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.percentual {
  font-size: 1.2rem;
  margin-left: 5px;
}

.taxa-data {
  font-size: 0.9rem;
  color: #666;
}

.taxa-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.taxa-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 0 10px;
}

.taxa-label {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-content {
  margin-bottom: 30px;
}

.footer-content h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer-section p {
  text-align: justify;
  color: #555;
}

/* Responsividade */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  .taxa-row {
    flex-direction: column;
    gap: 15px;
  }
}
