/* Mobile-first Reset e estilos básicos */
* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
  }
  
  /* Header customizado com seletor de idioma */
  header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .language-selector {
    position: relative;
  }
  
  .language-selector select {
    background: #444;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* seta customizada em SVG */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff"><path d="M4 6l4 4 4-4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
  }
  
  /* Main container com padding */
  main {
    padding: 20px;
  }
  
  /* Container da calculadora com degradê inspirado no Bitcoin */
  .calculator-container {
    background: linear-gradient(135deg, #f7931a, #ff9900);
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
  }
  
  /* Card da calculadora (área de entrada) */
  .calculator {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
  }
  
  /* Estilização da grid de resultados */
  .result-grid {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .result-grid table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  
  .result-grid th,
  .result-grid td {
    text-align: left;
    padding: 12px 15px;
  }
  
  .result-grid th {
    background-color: #f0f0f0;
    font-weight: 600;
  }
  
  .result-grid tbody tr {
    transition: background-color 0.3s;
    cursor: pointer;
  }
  
  .result-grid tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Estilização dos inputs */
  .input-mode {
    margin-bottom: 15px;
  }
  
  .input-mode label {
    margin-right: 15px;
    font-weight: 600;
  }
  
  .input-field input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
  }
  
  /* Estilização do combobox (modo fiat) */
  .fiat-selector label {
    font-weight: 600;
    margin-right: 8px;
  }
  
  /* Custom Select para moeda */
  .custom-select {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 80px;
  }
  
  .custom-select .selected-option {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    background: #fff;
  }
  
  .custom-select .selected-option img {
    vertical-align: middle;
  }
  
  .custom-select .options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .custom-select .option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
  }
  
  .custom-select .option:hover {
    background: #f0f0f0;
  }
  
  /* Media queries para telas maiores */
  @media (min-width: 768px) {
    .calculator-container {
      flex-direction: row;
    }
    .calculator {
      flex: 1;
      margin-right: 20px;
      margin-bottom: 0;
    }
    .result-grid {
      flex: 1;
    }
  }
  