/* Generator Page Specific Styles */
.generator-main {
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
  width: 100%;
  padding-left: 250px; /* add padding to offset the sidebar */
}

.generator-hero {
    text-align: center;
    padding: 2rem 0 4rem;
    margin-left: 10rem;
}

.generator-hero h1 {
    color: var(--main-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.generator-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.generator-sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 250px;
    background-color: var(--background);
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 2;
}

.generator-sidebar .category {
    display: flex;
    flex-direction: column;
}

.generator-sidebar .category h3 {
    font-size: 1.2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.generator-sidebar .category a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.generator-sidebar .category a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.generator-sidebar hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.generator-nav {
    background-color: transparent;
    padding: 0;
}

.generator-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}


.generator-nav a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.generator-nav a:hover,
.generator-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--main-color);
}

.generator-content {
    flex: 1;
    margin-left: 0;
    max-width: 100%;
    padding-right: 2.4rem;
}

.generator-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.generator-section h2 {
    color: var(--main-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.generator-section h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

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

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--main-color);
}

.help-text {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Toggle Switch */
.toggle {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 13px;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--main-color);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    color: var(--text-color);
}

/* Number inputs group */
.number-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Generator Actions */
.generator-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.generate-button,
.reset-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generate-button {
    background-color: var(--main-color);
    color: white;
}

.generate-button:hover {
    background-color: #f47a38;
}

.reset-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.reset-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Add to generator.css */

/* Mobile Navigation */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

nav {
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}



/* Mobile styles - 900px breakpoint */
@media (max-width: 900px) {
  /* Adjust main content */
  .main-content {
    padding-left: 0;
  }
  
  /* Adjust generator hero */
  .generator-hero {
    margin-left: 0;
    padding: 1rem 0 2rem;
  }
  
  .generator-hero h1 {
    font-size: 2.5rem;
  }
  
  /* Hide desktop sidebar */
  .generator-sidebar {
    display: none;
  }
  
  /* Hamburger menu styles */
  .hamburger {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 5rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Add config sections to mobile menu */
  .mobile-config-sections {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .mobile-config-sections h3 {
    color: var(--main-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .mobile-config-sections a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .mobile-config-sections a:hover {
    color: var(--main-color);
  }
  
  /* Transform hamburger to X when active */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Adjust generator content for mobile */
  .generator-container {
    padding: 0 1.5rem;
  }
  
  .generator-section {
    padding: 2rem 1.5rem;
  }
  
  .number-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .generator-container {
    padding: 0 1rem;
  }
  
  .generator-section {
    padding: 1.5rem 1rem;
  }
  
  .generator-section h2 {
    font-size: 1.8rem;
  }
  
  .generator-section h3 {
    font-size: 1.3rem;
  }
  
  .generator-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .generate-button,
  .reset-button {
    width: 100%;
  }
}