body {
    font-family: Arial, sans-serif;
    background: #e9f7ec;
    margin: 0;
    padding: 0;
    color: #1a4d2e;
}

header {
    text-align: center;
    background: #1a944e;
    padding: 25px;
    color: white;
}

.subtitle {
    margin-top: -10px;
}

.about {
    padding: 20px;
    background: #d4f1dd;
    border-bottom: 2px solid #1a944e;
}

.generator-box {
    max-width: 450px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #1a944e;
}

.options label {
    display: block;
    margin: 6px 0;
}

button {
    background: #1a944e;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #167a40;
}

.output-box {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

#result {
    flex: 1;
    padding: 10px;
    border: 1px solid #1a944e;
    border-radius: 5px;
}

footer {
    background: #1a944e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* FAQ Section */
.faq {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #d4f1dd;
    border-radius: 10px;
    border: 2px solid #1a944e;
}

.faq h2 {
    margin-bottom: 15px;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: #1a944e;
    color: white;
    padding: 12px;
    border: none;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.accordion-header.active {
    background: #167a40;
}

.accordion-body {
    display: none;
    background: white;
    border: 1px solid #1a944e;
    padding: 12px;
    margin-top: 5px;
    border-radius: 6px;
    color: #1a4d2e;
}
/* Existing styles remain */

.strength-wrapper {
    margin-top: 15px;
}

.strength-bar {
    width: 100%;
    height: 10px;
    background: #c8e6ca;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #1a944e;
}

#strengthFill {
    height: 100%;
    width: 0%;
    background: red;
    transition: width 0.4s ease, background 0.4s ease;
}

#strengthLabel {
    margin-top: 5px;
    font-weight: bold;
}

/* Dark Mode */
body.dark-mode {
    background: #121212;
    color: #e9f7ec;
}

body.dark-mode header,
body.dark-mode footer {
    background: #0d3d24;
}

body.dark-mode .generator-box,
body.dark-mode .faq {
    background: #1e1e1e;
    border-color: #2e7d51;
}

body.dark-mode input,
body.dark-mode select {
    background: #2a2a2a;
    color: white;
    border: 1px solid #2e7d51;
}

body.dark-mode .accordion-body {
    background: #2a2a2a;
}

body.dark-mode button {
    background: #2e7d51;
}

body.dark-mode .strength-bar {
    background: #3a3a3a;
}

/* Toggle Switch */
.theme-toggle {
    float: right;
    margin-top: -40px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle input {
    display: none;
}

.slider {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
}

.slider:before {
    content: "";
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.3s ease;
}

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

input:checked + .slider {
    background: #1a944e;
}

/* Centered container for the About section */
.about {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #d4f1dd;
    border-radius: 10px;
    border: 2px solid #1a944e;
}

/* Ensure text stays readable in dark mode */
body.dark-mode .about {
    background: #1e1e1e;
    border-color: #2e7d51;
    color: #e9f7ec;
}

/* Headings inside About section in dark mode */
body.dark-mode .about h2 {
    color: #8ff5c7;
}
