/* Password Generator Specific Styles */

.form-range {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.875rem;
}

.checkbox-item:hover {
    background-color: var(--bg-secondary);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.password-display {
    min-height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.password-display.has-password {
    border-style: solid;
    border-color: var(--success-color);
    background: var(--bg-card);
}

.placeholder-text {
    color: var(--text-muted);
}

.generated-password {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.4;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.password-length-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.strength-meter {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.strength-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-fill.very-weak {
    width: 20%;
    background: #ef4444;
}

.strength-fill.weak {
    width: 40%;
    background: #f97316;
}

.strength-fill.fair {
    width: 60%;
    background: #eab308;
}

.strength-fill.good {
    width: 80%;
    background: #22c55e;
}

.strength-fill.strong {
    width: 100%;
    background: #16a34a;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.strength-text.very-weak { color: #ef4444; }
.strength-text.weak { color: #f97316; }
.strength-text.fair { color: #eab308; }
.strength-text.good { color: #22c55e; }
.strength-text.strong { color: #16a34a; }

.quick-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.password-entropy {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.character-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

/* Password visibility toggle */
.password-visibility {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.password-visibility:hover {
    background: var(--bg-secondary);
}

/* Copy animation */
.copy-success {
    animation: copyPulse 0.6s ease-out;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .generated-password {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .password-display {
        padding: 1rem;
        min-height: 100px;
    }
    
    .generated-password {
        font-size: 0.875rem;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .password-display {
        border: 2px solid #000;
        background: #fff;
    }
    
    .generated-password {
        background: #f5f5f5;
        border: 1px solid #000;
    }
    
    .btn, .quick-actions {
        display: none;
    }
} 