/* Password Generator Styles */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #172f45;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #172f45;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#copy-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

#regenerate-btn:hover {
    background: #218838 !important;
}

#generate-btn:hover {
    background: #0d1f30 !important;
}

.checkbox-option {
    color: #333 !important;
}

.checkbox-option span {
    color: #333 !important;
}

.checkbox-option:hover {
    color: #172f45 !important;
}

.checkbox-option:hover span {
    color: #172f45 !important;
}

.password-options {
    color: #333;
}

.password-options label {
    color: #333 !important;
}

.password-options span {
    color: #333 !important;
}

.option-group span {
    color: #666 !important;
}

.option-group label {
    color: #333 !important;
}

/* Developer mode dark styling for password options */
body.developer-mode .password-options {
    background: #161b22 !important;
    color: #e6edf3 !important;
}

body.developer-mode .password-options h3 {
    color: #e6edf3 !important;
}

body.developer-mode .password-options label,
body.developer-mode .password-options span,
body.developer-mode .option-group label,
body.developer-mode .option-group span,
body.developer-mode .checkbox-option,
body.developer-mode .checkbox-option span {
    color: #e6edf3 !important;
}

body.developer-mode #generate-btn {
    background: #238636 !important;
}

body.developer-mode #generate-btn:hover {
    background: #2ea043 !important;
}

/* Password strength alignment fix */
#strength-preview>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

#strength-preview>div:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Developer mode link color */
body.developer-mode .password-strength-link {
    color: #ffffff !important;
}

/* Mobile responsive styles for password generator */
@media (max-width: 600px) {
    .password-box {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .password-box input[type="text"] {
        width: 100% !important;
        font-size: 16px !important;
        text-align: center;
    }

    .password-box button {
        width: 100% !important;
    }

    #regenerate-btn {
        justify-content: center !important;
        padding: 12px !important;
    }

    .password-options {
        padding: 16px !important;
    }

    .password-options h3 {
        font-size: 18px !important;
    }

    .option-group>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .generator-container {
        padding: 0 8px !important;
    }

    #generate-btn {
        font-size: 16px !important;
        padding: 14px !important;
    }
}

/* Extracted Inline Styles */
.form-center {
    text-align: center;
}

.generator-container {
    max-width: 700px;
    margin: 0 auto;
}

.password-display {
    margin-bottom: 24px;
}

.password-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #172f45;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.generated-password-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-btn-style {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.regenerate-btn-style {
    background: #28a745;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regenerate-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.copy-feedback {
    color: #28a745;
    font-size: 14px;
    height: 20px;
}

.password-options-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.password-options-header {
    margin: 0 0 20px 0;
    color: #172f45;
}

.option-group {
    margin-bottom: 24px;
}

.length-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.length-label {
    font-weight: 600;
    color: #333;
}

.length-value {
    font-weight: 700;
    color: #172f45;
    font-size: 18px;
}

.length-slider {
    width: 100%;
    height: 8px;
    cursor: pointer;
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.char-type-label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 12px;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.generate-btn-style {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    background: #172f45;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.strength-preview-box {
    margin-top: 24px;
    padding: 16px;
    background: #d4edda;
    border-radius: 8px;
    border: 1px solid #28a745;
    display: none;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strength-label {
    color: #155724;
    font-weight: 600;
}

.strength-value {
    color: #155724;
    font-weight: 700;
}

.crack-time-container {
    margin-top: 8px;
}

.crack-time-label {
    color: #155724;
    font-size: 14px;
}

.crack-time-value {
    color: #155724;
    font-weight: 600;
    font-size: 14px;
}

.quick-links {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.password-strength-link-style {
    color: #172f45;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-tabs {
    margin-top: 60px;
}

.best-practices-list {
    list-style: disc;
    padding-left: 24px;
}