/* --- Configurações Básicas --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
    margin-bottom: 50px; /* igual ou maior que a altura do footer */
}

/* --- Banner / Header --- */
.banner-header {
    background-image: url('images/banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.banner-content {
    background-color: #000000;
    background-color: rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.banner-title {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

/* --- Botão Dark Mode no Header (compacto e discreto) --- */
#darkModeButton {
    background-color: #556B2F; /* verde oliva */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

#darkModeToggle:hover {
    background-color: #6b8e23;
}

/* --- Tabela de Versículos --- */
.table {
    border-collapse: separate;
    border-spacing: 0 5px;
    width: 100%;
    margin-top: 20px;
}

.table thead th {
    background-color: #6b8e23;
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.table tbody tr {
    background-color: white;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.table tbody tr:hover {
    background-color: #f1f1f1;
}

.table td {
    padding: 10px;
    border-top: 1px solid #dee2e6;
    vertical-align: middle;
}

/* --- Alinhamento dos textos nas colunas --- */
.arabic-text {
    text-align: right;
    font-family: 'Scheherazade New', serif;
    font-size: 1.5em;
}

.transliteration-text {
    text-align: center;
    font-style: italic;
}

.translation-text {
    text-align: left;
}

/* --- Footer --- */
#rodape {
  background-color: #556B2F;
  color: white;
  padding: 10px 15px;
  font-size: 0.9em;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

/* --- Dark Mode --- */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .banner-header {
    background-color: #00000088;
    mix-blend-mode: luminosity;
}

body.dark-mode .banner-content {
    background-color: #000000;
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark-mode .table tbody tr {
    background-color: #1e1e1e;
}

body.dark-mode .table tbody tr:hover {
    background-color: #2b2b2b;
}

body.dark-mode .table thead th {
    background-color: #343a40;
    color: #ffffff;
}

body.dark-mode #rodape {
    background-color: #222;
    color: #ccc;
}

body.dark-mode a {
    color: #ffa726;
}

.busca-centralizada {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#campoBusca {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.1em;
    border-radius: 8px;
    border: 1px solid #ced4da;
    box-shadow: 0 2px 4px #556B2F;
}

.autocomplete-sugestoes {
    position: absolute;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
}

.item-sugestao {
    padding: 10px 15px;
    cursor: pointer;
    border-top: 1px solid #e9ecef;
}

.item-sugestao:hover {
    background-color: #f8f9fa;
}

.mosaico-suras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.caixa-sura {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.caixa-sura:hover {
    transform: translateY(-3px);
    background-color: #f1f1f1;
}

.numero-sura {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}

.nome-portugues {
    font-size: 1em;
    color: #6b8e23;
}

.nome-arabico {
  font-family: 'Scheherazade New', serif;
  font-size: 1.2em;
  color: #212529;
  direction: rtl;
  text-align: right;
  padding: 10px 20px 10px 20px;
}

.texto-verso {
  font-size: 1.6em;
  line-height: 1.8;
  
}

body.dark-mode .nome-arabico {
    color: #f1f1f1;
}

.verso-item {
  text-align: center;
  margin-bottom: 20px;
}

.numero-verso {
  font-size: 0.95em;
  color: #6b8e23;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: left;
  padding-left: 20px;
}

.traducao-texto {
  color: #333;
  direction: ltr;
  text-align: left;
  padding: 0 20px;
  margin-bottom: 10px;
}

.transliteracao-texto {
  font-style: italic;
  color: #555;
  direction: ltr;
  text-align: left;
  padding: 0 20px;
  margin-bottom: 10px;
}

.divisor-verso {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px auto;
  max-width: 80%;
}

/* --- Dark mode para transliteração e tradução --- */
body.dark-mode .transliteracao-texto {
  color: #cccccc;
}

body.dark-mode .traducao-texto {
  color: #eeeeee;
}
/* Dark para a lista dropdown de tradutores */
body.dark-mode select {
  background-color: #333;
  color: #eee;
}

/* Traduzir - Batch */
.versiculo-box {
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    direction: rtl;
    font-size: 1.5em;
}