:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --bg-color: #ecf0f1;
  --text-color: #2c3e50;
  --border-color: #bdc3c7;
  --highlight-color: #f39c12;
  --success-color: #27ae60;
  --warning-color: #f39c12;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
#main-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

#main-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-dropdown {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.language-dropdown:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.icon-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.icon-btn:hover {
  background: white;
  color: var(--primary-color);
}

/* Buttons */
.primary-btn {
  background: var(--secondary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background 0.3s;
  font-weight: 500;
}

.primary-btn:hover:not(:disabled) {
  background: #2980b9;
}

.primary-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

.secondary-btn {
  background: var(--border-color);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background: #95a5a6;
}

/* Footer */
#main-footer {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

#status-indicator {
  color: var(--success-color);
  font-weight: 500;
}

/* Utility Classes */
.help-text {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-top: 0.25rem;
  font-style: italic;
}

.placeholder {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 2rem;
}

.verse-number {
  font-size: 0.75em;
  vertical-align: super;
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 0.3rem;
  cursor: default;
}

.chapter {
  margin-bottom: 2rem;
}

.chapter h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  #main-header h1 {
    font-size: 1.2rem;
  }
  
  .language-dropdown {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 768px) {
  #main-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header-left, .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  #main-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
