/* Password Generator Styles */
.yan-tools-password-generator {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.yan-tools-password-generator .yan-tools-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.yan-tools-password-generator .yan-tools-header h2 {    color: white;

    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.yan-tools-password-generator .yan-tools-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.yan-tools-password-generator .yan-tools-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
    min-height: 400px;
}

.yan-tools-password-generator .yan-tools-settings-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.yan-tools-password-generator .yan-tools-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.yan-tools-password-generator .yan-tools-settings-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.yan-tools-password-generator .yan-tools-full-width {
    margin-bottom: 1.5rem;
}

.yan-tools-password-generator .yan-tools-settings-panel h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.yan-tools-password-generator .yan-tools-form-group {
    margin-bottom: 1.5rem;
}

.yan-tools-password-generator .yan-tools-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.yan-tools-password-generator .yan-tools-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.yan-tools-password-generator .yan-tools-range {
    flex: 1;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.yan-tools-password-generator .yan-tools-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.yan-tools-password-generator .yan-tools-range::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.yan-tools-password-generator .yan-tools-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.yan-tools-password-generator .yan-tools-number-input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.yan-tools-password-generator .yan-tools-number-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.yan-tools-password-generator .yan-tools-input-suffix {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.yan-tools-password-generator .yan-tools-checkbox-group {
    margin-bottom: 1.5rem;
}

.yan-tools-password-generator .yan-tools-checkbox-group h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.yan-tools-password-generator .yan-tools-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.yan-tools-password-generator .yan-tools-checkbox-label:hover {
    background-color: #f8f9fa;
}

.yan-tools-password-generator .yan-tools-checkbox-label input[type="checkbox"] {
    display: none;
}

.yan-tools-password-generator .yan-tools-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.yan-tools-password-generator .yan-tools-checkbox-label input[type="checkbox"]:checked + .yan-tools-checkbox-custom {
    background: #3498db;
    border-color: #3498db;
}

.yan-tools-password-generator .yan-tools-checkbox-label input[type="checkbox"]:checked + .yan-tools-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.yan-tools-password-generator .yan-tools-button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.yan-tools-password-generator .yan-tools-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.yan-tools-password-generator .yan-tools-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.yan-tools-password-generator .yan-tools-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.yan-tools-password-generator .yan-tools-btn-secondary {
    background: #95a5a6;
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.yan-tools-password-generator .yan-tools-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.yan-tools-password-generator .yan-tools-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.yan-tools-password-generator .yan-tools-btn-danger {
    background: #e74c3c;
    color: white;
}

.yan-tools-password-generator .yan-tools-btn-danger:hover {
    background: #c0392b;
}

.yan-tools-password-generator .yan-tools-results-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    position: sticky;
    top: 2rem;
}

.yan-tools-password-generator .yan-tools-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.yan-tools-password-generator .yan-tools-results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.yan-tools-password-generator .yan-tools-results-controls {
    display: flex;
    gap: 0.5rem;
}

.yan-tools-password-generator .yan-tools-passwords-list {
    padding: 0;
}

.yan-tools-password-generator .yan-tools-password-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.yan-tools-password-generator .yan-tools-password-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yan-tools-password-generator .yan-tools-password-content {
    flex: 1;
    margin-right: 1rem;
}

.yan-tools-password-generator .yan-tools-password-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.yan-tools-password-generator .yan-tools-password-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.yan-tools-password-generator .yan-tools-password-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yan-tools-password-generator .yan-tools-strength-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.yan-tools-password-generator .yan-tools-strength-very-weak {
    background: #e74c3c;
}

.yan-tools-password-generator .yan-tools-strength-weak {
    background: #f39c12;
}

.yan-tools-password-generator .yan-tools-strength-medium {
    background: #f1c40f;
}

.yan-tools-password-generator .yan-tools-strength-strong {
    background: #2ecc71;
}

.yan-tools-password-generator .yan-tools-strength-very-strong {
    background: #27ae60;
}

.yan-tools-password-generator .yan-tools-password-actions {
    display: flex;
    gap: 0.5rem;
}

.yan-tools-password-generator .yan-tools-copy-btn {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yan-tools-password-generator .yan-tools-copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.yan-tools-password-generator .yan-tools-copy-btn.copied {
    background: #27ae60;
    color: white;
}

.yan-tools-password-generator .yan-tools-history-list {
    padding: 0;
}

.yan-tools-password-generator .yan-tools-history-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.yan-tools-password-generator .yan-tools-history-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yan-tools-password-generator .yan-tools-history-item.new-password {
    background: #d4edda;
    border-color: #c3e6cb;
    animation: highlightNewPassword 2s ease-out;
}

@keyframes highlightNewPassword {
    0% {
        background: #d4edda;
        transform: scale(1.02);
    }
    50% {
        background: #c3e6cb;
        transform: scale(1.01);
    }
    100% {
        background: #f8f9fa;
        transform: scale(1);
    }
}

.yan-tools-password-generator .yan-tools-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.yan-tools-password-generator .yan-tools-history-row:last-child {
    margin-bottom: 0;
}

.yan-tools-password-generator .yan-tools-history-password {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    word-break: break-all;
    line-height: 1.3;
    flex: 1;
    margin-right: 1rem;
}

.yan-tools-password-generator .yan-tools-history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.yan-tools-password-generator .yan-tools-history-actions {
    display: flex;
    gap: 0.5rem;
}

.yan-tools-password-generator .yan-tools-history-time {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.yan-tools-password-generator .yan-tools-info-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.yan-tools-password-generator .yan-tools-info h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.yan-tools-password-generator .yan-tools-info h4 {
    margin: 1.5rem 0 0.5rem 0;
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
}

.yan-tools-password-generator .yan-tools-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.yan-tools-password-generator .yan-tools-info li {
    margin-bottom: 0.5rem;
    color: #555;
}

.yan-tools-password-generator .yan-tools-info strong {
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yan-tools-password-generator .yan-tools-main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .yan-tools-password-generator .yan-tools-header h2 {    color: white;

        font-size: 2rem;
    }
    
    .yan-tools-password-generator .yan-tools-settings-panel,
    .yan-tools-password-generator .yan-tools-results-panel,
    .yan-tools-password-generator .yan-tools-info-panel {
        padding: 1.5rem;
    }
    
    .yan-tools-password-generator .yan-tools-settings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .yan-tools-password-generator .yan-tools-results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .yan-tools-password-generator .yan-tools-results-controls {
        justify-content: center;
    }
    
    .yan-tools-password-generator .yan-tools-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .yan-tools-password-generator .yan-tools-button-group {
        flex-direction: column;
    }
    
    .yan-tools-password-generator .yan-tools-password-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .yan-tools-password-generator .yan-tools-password-content {
        margin-right: 0;
    }
    
    .yan-tools-password-generator .yan-tools-password-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading Animation */
.yan-tools-password-generator .yan-tools-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.yan-tools-password-generator .yan-tools-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.yan-tools-password-generator .yan-tools-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.yan-tools-password-generator .yan-tools-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.yan-tools-password-generator .yan-tools-no-history {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e5e9;
}

.yan-tools-password-generator .yan-tools-no-history p {
    margin: 0;
    font-size: 0.9rem;
}
