/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f7f9fc;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
  padding-top: 80px; /* Space for navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s;
}

body.dark-mode .navbar {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: #007bff;
}

/* Layout */
main {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Content Boxes */
#verse-container, #contact-container, #comments-container, .static-content {
  width: 100%;
  max-width: 600px;
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

body.dark-mode #verse-container, 
body.dark-mode #contact-container, 
body.dark-mode #comments-container,
body.dark-mode .static-content {
  background-color: #2d2d2d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reflection Box */
.reflection-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f0f7ff;
  border-radius: 8px;
  text-align: left;
  border-left: 4px solid #007bff;
}

body.dark-mode .reflection-box {
  background-color: #3d3d3d;
  border-left-color: #4da3ff;
}

.reflection-box h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #007bff;
  text-transform: uppercase;
}

body.dark-mode .reflection-box h3 {
  color: #4da3ff;
}

#verse-text {
  font-size: 1.6rem;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0.5rem;
}

#verse-reference {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 0;
}

/* Buttons */
button {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
  margin-bottom: 3rem;
}

button:hover {
  background-color: #0056b3;
}

button:active {
  transform: scale(0.98);
}

/* Forms */
#contact-container {
  text-align: left;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
}

body.dark-mode .form-group input, body.dark-mode .form-group textarea {
  background-color: #3d3d3d;
  border-color: #4d4d4d;
  color: #e0e0e0;
}

/* Theme Switch */
.theme-switch-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 44px;
}

.theme-switch input {display:none;}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 18px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #007bff;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Footer */
footer {
  width: 100%;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

body.dark-mode footer {
  border-top-color: #333;
}