/* YTB-0096 Password Generator — scoped styles, layered on top of shared ytb-calc.css */

.ytb-pwdgen-wrap {
    max-width: 900px;
}

.ytb-pwdgen-header {
    background: #1976D2;
    color: #fff;
    padding: 18px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.ytb-pwdgen-card {
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    padding: 20px 24px 24px;
    background: #fff;
}

.ytb-pwdgen-output-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.ytb-pwdgen-output {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    word-break: break-all;
}

.ytb-pwdgen-strength {
    margin: 10px 0 20px;
}

.ytb-pwdgen-strength-bar {
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
    margin-bottom: 6px;
}

.ytb-pwdgen-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.2s ease, background 0.2s ease;
}

.ytb-pwdgen-strength-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.ytb-pwdgen-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px 0;
}

.ytb-pwdgen-length-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ytb-pwdgen-length-row input[type="range"] {
    flex: 1;
}

.ytb-pwdgen-length-value {
    font-weight: 700;
    min-width: 34px;
    text-align: center;
    background: #1976D2;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
}

.ytb-pwdgen-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.ytb-pwdgen-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.ytb-pwdgen-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ytb-pwdgen-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ytb-pwdgen-btn:hover {
    background: #43a047;
}

.ytb-pwdgen-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.ytb-pwdgen-btn.secondary:hover {
    background: #eaeaea;
}

.ytb-pwdgen-bulk {
    margin-top: 20px;
}

.ytb-pwdgen-bulk-list {
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px 16px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.ytb-pwdgen-bulk-list div {
    padding: 3px 0;
}

@media (max-width: 640px) {
    .ytb-pwdgen-checkboxes {
        grid-template-columns: 1fr;
    }
    .ytb-pwdgen-toolbar {
        flex-direction: column;
    }
    .ytb-pwdgen-btn {
        width: 100%;
    }
}
