/* 密码显示区域 */
.password-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.password-output {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.password-text {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    min-height: 36px;
}

.password-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.password-actions .btn {
    min-width: 120px;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 15px;
    text-align: center;
}

.strength-label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.strength-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 300px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-weak { width: 33%; background: #ff6b6b; }
.strength-medium { width: 66%; background: #ffd93d; }
.strength-strong { width: 100%; background: #6bcf7f; }

/* 选项卡片 */
.options-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.option-group {
    margin-bottom: 20px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.length-slider {
    flex: 1;
}

.length-value {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

/* 复选框样式 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    margin: 0;
    user-select: none;
}

/* 历史记录 */
.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.history-password {
    flex: 1;
    word-break: break-all;
    font-size: 14px;
    color: #2d3748;
}

.history-actions {
    display: flex;
    gap: 5px;
}

.history-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .password-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}