/* Base Reset and Styling */
body {
  background-color: #3F8EBA; /* Custom blue */
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #2D6A91; /* Slightly darker blue for header */
  padding: 10px;
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.bible-codes-heading {
  color: white;
  font-size: 24px;
  margin: 0;
}

/* Main Content Styling */
.main-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Search Section */
.search-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.input-container {
  display: flex;
  flex-direction: column;
}

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

.st {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.range-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.range-container label {
  font-size: 14px;
}

.range-container input {
  padding: 5px;
  font-size: 14px;
  width: 60px;
}

.btn {
  padding: 10px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #3F8EBA;
  color: white;
  cursor: pointer;
}

.btn:hover {
  background-color: #2D6A91;
}

/* Torah Section */
.torah-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.torah-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.torah-box {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  height: 300px;
  overflow: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#torah-text {
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap; /* Wrap text */
  word-wrap: break-word;
}

/* Add these styles for the results container */
.results-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
}

.results-container h3 {
  margin-top: 0;
  color: #003366;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.results-list {
  font-family: monospace;
  line-height: 1.5;
}

.result-item {
  padding: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

.result-item:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  border-top-color: #007bff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.offline-indicator {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  margin-top: 20px;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  border-left: 5px solid #f5c6cb;
}

.hidden {
  display: none;
}
