body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
}

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

.container {
  width: 100%;
  max-width: 900px;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  margin: 40px 20px;
}

body.dark-mode .container {
  background-color: #1e1e1e;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Header & Nav */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

body.dark-mode h1 {
  color: #e0e0e0;
}

.main-nav {
  margin-bottom: 40px;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}

body.dark-mode .main-nav a {
  color: #aaa;
}

.main-nav a:hover {
  color: #4CAF50;
}

/* Generator Section */
.generator-section {
  text-align: center;
  margin-bottom: 60px;
}

.lotto-numbers-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.main-action-btn {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background-color: #4CAF50;
  color: white;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transition: transform 0.2s, background-color 0.3s;
}

.main-action-btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.main-action-btn:active {
  transform: translateY(0);
}

/* Info Section & Features */
.info-section, .faq-section, .contact-section, .disqus-section {
  text-align: left;
}

hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 40px 0;
}

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

h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
}

body.dark-mode h2 {
  color: #e0e0e0;
}

.info-section p, .section-desc {
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

body.dark-mode .info-section p, 
body.dark-mode .section-desc {
  color: #bbb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.feature-card {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: background-color 0.3s;
}

body.dark-mode .feature-card {
  background-color: #252525;
}

.feature-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #4CAF50;
}

.feature-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 25px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

body.dark-mode .faq-item h3 {
  color: #eee;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

body.dark-mode .faq-item p {
  color: #aaa;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #666;
}

body.dark-mode .form-group label {
  color: #aaa;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  transition: border-color 0.3s;
}

body.dark-mode .form-group input, 
body.dark-mode .form-group textarea {
  background-color: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

body.dark-mode .submit-btn {
  background-color: #444;
}

.submit-btn:hover {
  background-color: #555;
}

/* Footer */
.main-footer {
  text-align: center;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 12px;
  color: #888;
  text-decoration: none;
}

.copyright {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 11px;
  color: #ccc;
  font-style: italic;
  line-height: 1.4;
}

body.dark-mode .disclaimer {
  color: #555;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#theme-toggle {
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: transparent;
  border-radius: 20px;
  transition: all 0.3s;
}

body.dark-mode #theme-toggle {
  border-color: #555;
  color: #ccc;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
    margin: 20px 10px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-nav ul {
    gap: 10px;
  }
  
  .main-nav a {
    font-size: 12px;
  }
}
