/* Password Generator — Tool-specific styles */

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 768px) { .generator-container { grid-template-columns: 1fr; } }

.panel h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border);
}

/* Slider */
.slider-container { margin-bottom: 20px; }
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.slider-header label { margin: 0; }
.slider-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Character types */
.char-types { margin-bottom: 20px; }
.char-types > label { margin-bottom: 10px; }
.char-type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    margin-bottom: 6px;
    transition: border-color var(--transition), background var(--transition);
    cursor: pointer;
}
.char-type-option:hover { border-color: var(--border); background: var(--surface); }
.char-type-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
    /* Reset shared.css width:100% rule */
    width: 16px !important;
}
.char-type-option label {
    flex: 1;
    margin: 0;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.char-preview {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted-light);
    white-space: nowrap;
}

.generation-count {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.generation-count label { margin: 0; }
.generation-count input {
    width: 72px !important;
    text-align: center;
    padding: 8px !important;
}

/* Password display */
.password-display {
    background: #1E293B;
    color: #E2E8F0;
    padding: 20px 60px 20px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    text-align: center;
    word-break: break-all;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    letter-spacing: 0.04em;
}
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: background var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,0.22); }

/* Strength meter */
.strength-meter { margin-bottom: 20px; }
.strength-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}
.strength-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 300ms ease, background 300ms ease;
}
.strength-weak { background: #EF4444; }
.strength-medium { background: #F59E0B; }
.strength-strong { background: var(--success); }
.strength-very-strong { background: var(--primary); }
.strength-text {
    text-align: center;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

/* Password list */
.password-list { display: flex; flex-direction: column; gap: 7px; }
.password-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: border-color var(--transition);
}
.password-item:hover { border-color: var(--primary); }
.password-text { flex: 1; word-break: break-all; color: var(--text); }
.password-copy {
    background: none;
    border: none;
    color: var(--muted-light);
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}
.password-copy:hover { color: var(--primary); background: var(--primary-light); }
