/* Password Generator Styles */
.password-generator-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #e1e5e9;
}

.pg-header {
    text-align: center;
    margin-bottom: 25px;
}

.pg-header h3 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.pg-header h3 i {
    color: #3498db;
    margin-right: 10px;
}

.pg-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95em;
}

.pg-password-display {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

#pg-generated-password {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

#pg-generated-password:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
}

.pg-copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
    margin-left: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pg-copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.pg-copy-btn:active {
    transform: translateY(0);
}

.pg-options {
    margin-bottom: 25px;
}

.pg-option-group {
    margin-bottom: 20px;
}

.pg-option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.pg-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
}

.pg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg-slider::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.pg-radio-group,
.pg-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pg-radio,
.pg-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9em;
}

.pg-radio:hover,
.pg-checkbox:hover {
    background: #e8f4fc;
    border-color: #3498db;
}

.pg-radio input,
.pg-checkbox input {
    display: none;
}

.pg-radio-checkmark,
.pg-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.pg-radio-checkmark {
    border-radius: 50%;
}

.pg-checkmark {
    border-radius: 4px;
}

.pg-radio input:checked + .pg-radio-checkmark,
.pg-checkbox input:checked + .pg-checkmark {
    border-color: #3498db;
    background: #3498db;
}

.pg-radio input:checked + .pg-radio-checkmark::after,
.pg-checkbox input:checked + .pg-checkmark::after {
    content: '';
    position: absolute;
    display: block;
}

.pg-radio input:checked + .pg-radio-checkmark::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
}

.pg-checkbox input:checked + .pg-checkmark::after {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pg-radio i,
.pg-checkbox i {
    margin-right: 8px;
    color: #7f8c8d;
    width: 16px;
    text-align: center;
}

.pg-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pg-generate-btn,
.pg-reset-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pg-generate-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.pg-generate-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.pg-reset-btn {
    background: #95a5a6;
    color: white;
}

.pg-reset-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.pg-strength-meter {
    margin-top: 20px;
}

.pg-strength-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.pg-strength-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.pg-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pg-strength-fill[data-strength="0"] { width: 0%; background: #e74c3c; }
.pg-strength-fill[data-strength="1"] { width: 25%; background: #e74c3c; }
.pg-strength-fill[data-strength="2"] { width: 50%; background: #f39c12; }
.pg-strength-fill[data-strength="3"] { width: 75%; background: #f1c40f; }
.pg-strength-fill[data-strength="4"] { width: 100%; background: #2ecc71; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .password-generator-container {
        margin: 10px;
        padding: 20px;
    }
    
    .pg-radio-group,
    .pg-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .pg-actions {
        flex-direction: column;
    }
    
    .pg-password-display {
        flex-direction: column;
    }
    
    .pg-copy-btn {
        margin-left: 0;
        margin-top: 10px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .password-generator-container {
        padding: 15px;
    }
    
    .pg-header h3 {
        font-size: 1.3em;
    }
    
    .pg-generate-btn,
    .pg-reset-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Copy feedback animation */
.pg-copy-feedback {
    position: absolute;
    top: -30px;
    right: 0;
    background: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    animation: fadeOut 2s ease-in-out;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}