/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 20px;
}
.container {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
h1 {
    margin: 0;
    color: #333;
}
h1 i {
    margin-right: 8px;
}
h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}
p {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 16px;
}
.intro-section p, .tips-section p, .info-section p, .about-section p {
    text-align: left;
}
.navigation {
    margin: 20px 0;
    text-align: center;
}
.navigation a {
    margin: 0 15px;
    color: #1E88E5;
    text-decoration: none;
    font-weight: bold;
}
.navigation a:hover {
    color: #1976D2;
}
.settings {
    margin-bottom: 40px;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin-bottom: 20px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #1E88E5;
    border-radius: 50%;
    cursor: pointer;
}
input[type="range"]:focus::-webkit-slider-thumb {
    background-color: #1976D2;
}
.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
    margin-left: 5px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 14px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #1E88E5;
}
input:focus + .slider {
    box-shadow: 0 0 1px #1E88E5;
}
input:checked + .slider:before {
    transform: translateX(28px);
}
body.dark-mode input:checked + .slider {
    background-color: #1E90FF;
}
.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.toggle-container {
    margin-bottom: 10px;
}
.strength-output {
    margin-top: 20px;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eaeaea;
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}
.strength-text {
    margin-top: 10px;
    font-weight: bold;
}
.strength-feedback {
    display: block;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}
#copyNotification {
    display: none;
    color: #1E88E5;
    font-size: 14px;
    margin-left: 10px;
}
button {
    background-color: #1E88E5;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}
button:hover {
    background-color: #1976D2;
}
button:active {
    background-color: #1565C0;
}
button:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}
.button-group {
    display: flex;
    gap: 10px;
}
#generate, #regenerate {
    width: 50%;
}
button#copyBtn {
    width: auto;
    padding: 8px 12px;
    margin-left: 10px;
}
input[type="text"] {
    width: calc(100% - 120px);
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
input[type="text"]:focus {
    border-color: #1E88E5;
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}
.intro-section, .tips-section, .info-section, .about-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.info-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
}
.info-section li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #333;
}
.info-section li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #1E88E5;
    position: absolute;
    left: 0;
    top: 2px;
}
.info-section strong, .about-section strong, .tips-section strong {
    color: #333;
}
body.dark-mode {
    background-color: #333;
    color: #ddd;
}
body.dark-mode .container {
    background-color: #444;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
body.dark-mode h1, body.dark-mode h2 {
    color: #fff;
}
body.dark-mode p, body.dark-mode .strength-feedback, body.dark-mode .info-section li {
    color: #ddd;
}
body.dark-mode .navigation a {
    color: #1E90FF;
}
body.dark-mode .navigation a:hover {
    color: #42A5F5;
}
body.dark-mode .settings {
    margin-bottom: 40px;
}
body.dark-mode input[type="range"] {
    background: #555;
}
body.dark-mode .slider {
    background-color: #555;
}
body.dark-mode input[type="text"] {
    border-color: #555;
}
body.dark-mode .progress-bar {
    background-color: #555;
}
body.dark-mode .progress-fill {
    background-color: #1E88E5;
}
body.dark-mode .intro-section, body.dark-mode .tips-section, body.dark-mode .info-section, body.dark-mode .about-section {
    border-top-color: #555;
}
body.dark-mode .info-section strong, body.dark-mode .about-section strong, body.dark-mode .tips-section strong {
    color: #eee;
}
body.dark-mode .info-section li:before {
    color: #1E90FF;
}
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    p, .info-section li {
        font-size: 14px;
    }
    .navigation {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .switch {
        width: 40px;
        height: 22px;
        margin-left: 3px;
    }
    .slider {
        border-radius: 11px;
    }
    .slider:before {
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 3px;
    }
    input:checked + .slider:before {
        transform: translateX(20px);
    }
    body.dark-mode input:checked + .slider {
        background-color: #1E90FF;
    }
    button {
        font-size: 14px;
        padding: 8px 12px;
    }
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    #generate, #regenerate {
        width: 100%;
    }
    .toggle-label {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
    }
    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    .toggle-container {
        margin-bottom: 0;
    }
    .adsense-ad {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .settings {
        margin-bottom: 30px;
    }
    .password-output {
        margin-top: 20px;
    }
}
@media (min-width: 601px) {
    .adsense-ad {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .settings {
        margin-bottom: 40px;
    }
    .password-output {
        margin-top: 20px;
    }
}
